- Run
npm install cordova-res --save-dev - Create
1024x1024pxicon atresources/icon.png - Create
2732x2732pxsplash atresources/splash.png - Add
"resources": "cordova-res ios && cordova-res android && node scripts/resources.js"toscriptsinpackage.json - Copy
resources.jsfile toscripts/resources.js - Run
sudo chmod -R 777 scripts/resources.js - Run
npm run resources
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -e | |
| vendor/bin/phpunit | |
| (git push) || true | |
| git checkout production | |
| git merge master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log('Loading event'); | |
| var CLOUDSEARCH_ENDPOINT = < INSERT HERE > | |
| var async = require('async'); | |
| var jpath = require('json-path') | |
| var zlib = require('zlib'); | |
| var aws = require('aws-sdk'); | |
| var s3 = new aws.S3({ | |
| apiVersion: '2006-03-01' | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import passport from 'passport'; | |
| module.exports = app => { | |
| app.get('/findUser', (req, res, next) => { | |
| passport.authenticate('jwt', { session: false }, (err, user, info) => { | |
| if (err) { | |
| console.log(err); | |
| } | |
| if (info != undefined) { | |
| console.log(info.message); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // config/passport.js | |
| // load all the things we need | |
| var LocalStrategy = require('passport-local').Strategy; | |
| var mysql = require('mysql'); | |
| var connection = mysql.createConnection({ | |
| host : 'localhost', | |
| user : 'root', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="container-fluid"> | |
| <div class="row"> | |
| <!-- /.col-md-6 --> | |
| <div class="col-lg-12"> | |
| <div class="card"> | |
| <div class="card-body"> | |
| <div class="row" id="laravelPagination" data-url="{{ route('country.page') }}" x-data="laravelPagination()" | |
| x-init="init()"> | |
| <template x-for="item in country" :key="item.id"> | |
| <div class="card col-12 mb-3"> |
See how a minor change to your commit message style can make a difference. Examples
Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ''' pqt_tableview3.py | |
| explore PyQT's QTableView Model | |
| using QAbstractTableModel to present tabular data | |
| allow table sorting by clicking on the header title | |
| used the Anaconda package (comes with PyQt4) on OS X | |
| (dns) | |
| ''' | |
| #coding=utf-8 |
FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const AWS = require('aws-sdk'); | |
| const Busboy = require('busboy'); | |
| const BUCKET_NAME = ''; | |
| const IAM_USER_KEY = ''; | |
| const IAM_USER_SECRET = ''; | |
| function uploadToS3(file) { | |
| let s3bucket = new AWS.S3({ | |
| accessKeyId: IAM_USER_KEY, |
NewerOlder