Most basic example of authenticating with Github in node.
Clone this gist, change keys inside config.js and then hit npm install && node app.js.
| #!/bin/bash | |
| # Merges the master branch into all other branches | |
| # | |
| # Process: | |
| # | |
| # - Save the name of the current branch | |
| # - If the current branch is not master then checkout master. | |
| # - Pull the latest changes for master from its upstream branch. | |
| # - Loop over each local branch. |
| // require modules | |
| var express = require('express'), | |
| i18n = require('i18n'), | |
| hbs = require('hbs'), | |
| app = module.exports = express(); | |
| i18n.configure({ | |
| locales: ['en', 'fr'], | |
| cookie: 'locale', | |
| directory: "" + __dirname + "/locales" |
| <?php | |
| /** | |
| * Tests if get_post_time() and get_post_modified_time() return GMT(UTC) times correctly. | |
| * | |
| * get_post_time() and get_post_modified_time() have a parameter for GMT(UTC) time. | |
| * However, they use mysqldate(), which does not take such a parameter. | |
| * mysql2date() expects the default timezone to be set to GMT(UTC), but when it is not, | |
| * get_post_time() and get_post_modified_time() do not correctly return GMT(UTC) time. | |
| * To prove this, test_get_post_time() and test_get_post_modified_time() should return two |
| [ | |
| { | |
| "args": null, | |
| "command": "select_all" | |
| }, | |
| { | |
| "args": | |
| { | |
| "set_translate_tabs": true | |
| }, |
| <?php | |
| /** | |
| * Must-Use Functions | |
| * | |
| * A class filled with functions that will never go away upon theme deactivation. | |
| * | |
| * @package WordPress | |
| * @subpackage GRD | |
| */ | |
| class GRD_Functions { |
| /* | |
| Save To CSV 0.0.2 | |
| @author Kevin Jantzer, Blackstone Audio | |
| @since 2015-01-16 | |
| intial code from http://stackoverflow.com/a/14966131/484780 | |
| TODO | |
| - needs improved (objects as values) |
| #!/bin/bash | |
| # Install build dependencies | |
| yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel | |
| # Get GraphicsMagick source | |
| wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.9.tar.gz | |
| tar zxvf GraphicsMagick-1.3.9.tar.gz | |
| # Configure and compile |
| .table-like-grid { | |
| display: table; | |
| width: 100%; | |
| } | |
| .table-like-grid > li { | |
| display: table-row; | |
| } | |
| .table-like-grid > li[data-role="table-header"] { |