http://twitter.com/share?text=<TITLE>&url=<URL>
E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com
http://www.facebook.com/sharer.php?u=&p[title]=
| { | |
| // http://eslint.org/docs/rules/ | |
| "ecmaFeatures": { | |
| "binaryLiterals": false, // enable binary literals | |
| "blockBindings": false, // enable let and const (aka block bindings) | |
| "defaultParams": false, // enable default function parameters | |
| "forOf": false, // enable for-of loops | |
| "generators": false, // enable generators | |
| "objectLiteralComputedProperties": false, // enable computed object literal property names |
| var touchstartX = 0; | |
| var touchstartY = 0; | |
| var touchendX = 0; | |
| var touchendY = 0; | |
| var gesuredZone = document.getElementById('gesuredZone'); | |
| gesuredZone.addEventListener('touchstart', function(event) { | |
| touchstartX = event.changedTouches[0].pageX; | |
| touchstartY = event.changedTouches[0].pageY; |
| { | |
| "name": "my-app", | |
| "version": "1.0.0", | |
| "description": "My test app", | |
| "main": "src/js/index.js", | |
| "scripts": { | |
| "jshint:dist": "jshint src/js/*.js'", | |
| "jshint": "npm run jshint:dist", | |
| "jscs": "jscs src/*.js", | |
| "browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js", |
| if( function_exists('acf_add_options_page') ) { | |
| acf_add_options_page(array( | |
| 'page_title' => 'Options', | |
| 'menu_title' => 'Options', | |
| 'menu_slug' => 'options', | |
| 'capability' => 'edit_posts', | |
| 'redirect' => false | |
| )); | |
| # ----------------------------------------------------------------- | |
| # .gitignore for WordPress | |
| # ----------------------------------------------------------------- | |
| # ignore everything in the root except the "wp-content" directory. | |
| /* | |
| !wp-content/ | |
| # ignore all files starting with . | |
| .* |
| Copy directory to remote server from remote server | |
| scp -r sourcedir/ [email protected]:/dest/dir/ | |
| Run a scheduled rake task(lets say update sphinx indexing on every 30 min periodically) on Lunux crontab: | |
| # find where is your rake(which rake) | |
| #m h dom mon dow user command | |
| */30 * * * * root /bin/bash -l -c 'searchd --stop -c /var/rails/project/current/config/production.sphinx.conf && cd /var/rails/project/current && RAILS_ENV=production /usr/local/bin/rake ts:rebuild && chmod -R 777 tmp/' | |
| Create Symbolic link(Short cut) | |
| ln -s /source/dir destination/dire/short_cut_name |