Install git:
sudo apt-get install git
Configure Git:
touch ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
git config --global user.name "Your Name"
git config --global user.email "Your Email"
| const util = require('util') | |
| const mysql = require('mysql') | |
| const pool = mysql.createPool({ | |
| connectionLimit: 10, | |
| host: 'localhost', | |
| user: 'root', | |
| password: 'password', | |
| database: 'my_database' | |
| }) |
| #!/usr/bin/env python3 | |
| # taken from http://www.piware.de/2011/01/creating-an-https-server-in-python/ | |
| # generate server.xml with the following command: | |
| # openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
| # run as follows: | |
| # python simple-https-server.py | |
| # then in your browser, visit: | |
| # https://localhost:4443 | |
| import http.server |
| [diff] | |
| tool = vsdiffmerge | |
| [difftool] | |
| prompt = true | |
| [difftool "vsdiffmerge"] | |
| cmd = \"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\Common7\\IDE\\CommonExtensions\\Microsoft\\TeamFoundation\\Team Explorer\\vsDiffMerge.exe\" \"$LOCAL\" \"$REMOTE\" //t | |
| keepbackup = false | |
| trustexistcode = true | |
| [merge] | |
| tool = vsdiffmerge |
| # Download a copy of git-prompt.sh from https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh | |
| # and add the code below to your .bash_profile | |
| #custom terminal prompt with git support: | |
| source ~/.git-prompt.sh | |
| export PROMPT_COMMAND="__git_ps1 '\w' ' \$ '" | |
| export GIT_PS1_SHOWCOLORHINTS=1 | |
| export GIT_PS1_SHOWDIRTYSTATE=1 |
Install git:
sudo apt-get install git
Configure Git:
touch ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
git config --global user.name "Your Name"
git config --global user.email "Your Email"
| function generateUUID() { | |
| var d = new Date().getTime(); | |
| var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
| var r = (d + Math.random()*16)%16 | 0; | |
| d = Math.floor(d/16); | |
| return (c=='x' ? r : (r&0x3|0x8)).toString(16); | |
| }); | |
| return uuid; | |
| }; |
| # Android | |
| platforms/android/assets/www | |
| platforms/android/bin/ | |
| platforms/android/gen/ | |
| platforms/android/res/xml/config.xml | |
| # iOS | |
| platforms/ios/build/ | |
| platforms/ios/CordovaLib/build/ | |
| platforms/ios/www |
| import java.io.IOException; | |
| import java.lang.reflect.Constructor; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.InvocationTargetException; | |
| import java.lang.reflect.Method; | |
| import android.graphics.Bitmap; | |
| import android.graphics.Matrix; | |
| import android.os.Build; |