Skip to content

Instantly share code, notes, and snippets.

View zxshinxz's full-sized avatar

Andy (Yoon Yong) Shin zxshinxz

View GitHub Profile
@zxshinxz
zxshinxz / gist:b3ab5130e2988fa56e8e
Created March 3, 2016 10:40
Ubunutu setup LocalTime
sudo apt-get update
sudo apt-get upgrade
export LANG="en_US"
export LC_ALL=$LANG.UTF-8
sudo dpkg-reconfigure locales
sudo dpkg-reconfigure tzdata
http://placehold.it/200x100
@zxshinxz
zxshinxz / fix local notification
Created September 26, 2015 13:25
fix local notification
change LocalNotification.java
both
/plugins/de.appplant.cordova.plugin.local-notification/src/android/LocalNotification.java
/platforms/android/src/de/appplant/cordova/plugin/localnotification/LocalNotification.java
private static synchronized void sendJavascript(final String js) {
if (!deviceready) {
eventQueue.add(js);
@zxshinxz
zxshinxz / gitIgnore.sh
Last active August 29, 2015 14:22
apply new git ignore
// Making changes to .gitignore and make ignored files available locally
//change .gitignore and add commit everything before doing this
git rm -r --cached some-directory
git commit -m 'Remove the now ignored directory "some-directory"'
git push origin master
// After this normal workflow. Note ignored files are available locally.
git add .
git commit -m 'blar'
git push origin master
@zxshinxz
zxshinxz / Footer-Toggle:-Nightly.markdown
Created March 29, 2015 07:41
Footer Toggle: Nightly
module.exports = {
get: function (req, res) {
res.sendfile(req.path.substr(1));
},
_config: {
rest: false,
shortcuts: false
}
};