Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
| ~ ⚡ mkdir -p ~/.yeoman | |
| ~ ⚡ sudo npm install -g yeoman | |
| Password: | |
| npm http GET https://registry.npmjs.org/yeoman | |
| npm http 304 https://registry.npmjs.org/yeoman | |
| > yeoman@0.9.0 uninstall /usr/local/share/npm/lib/node_modules/yeoman | |
| > sudo rm -r ~/.yeoman |
| // | |
| // Sass rotation mixin for IE6+ | |
| // | |
| @mixin ms-rotate($degrees) { | |
| @if (not unitless($degrees)) { $degrees: $degrees / 1deg } | |
| $deg2rad: pi() * 2 / 360; | |
| $radians: $degrees * $deg2rad; | |
| $costheta: cos($radians); | |
| $sintheta: sin($radians); |
| /* | |
| We can even execute JavaScript. | |
| For example, here is a simple jQuery plugin that shuffles the "Demo" heading text above. | |
| http://tutorialzine.com/2011/09/shuffle-letters-effect-jquery/ | |
| */ | |
| $("#demo-header").shuffleLetters(); |
| /** | |
| * Greg Gamel logo + red bg | |
| */ | |
| body { background: #e5e5e5; } | |
| svg { background: black; height: 48px; width: 48px; } |
| /* | |
| --- | |
| name: guilloche | |
| script: guilloche.js | |
| description: guilloche | |
| provides: [Guilloche] | |
| ... | |
| */ |
| /** | |
| */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| -webkit-box-sizing: border-box; | |
| box-sizing: border-box; | |
| position: relative; |
| var svg = document.getElementById('graph'), | |
| xml = new XMLSerializer().serializeToString(svg), | |
| data = "data:image/svg+xml;base64," + btoa(xml), | |
| img = new Image() | |
| img.setAttribute('src', data) | |
| document.body.appendChild(img) |
| require 'pty' | |
| CONFIG = { | |
| :remote => { | |
| :host => 'my.ssh-host.com', | |
| :user => 'my-ssh-username', | |
| :path => 'path-to/site/root' | |
| }, | |
| :posts => 'local/posts/directory' | |
| } |
Description: Setup GitHub Pages "gh-pages" branch and "master" branch as subfolders of a parent project folder ("grandmaster").
Author: Chris Jacob @_chrisjacob
Tutorial (Gist): https://gist.github.com/833223
| user nginx nginx; | |
| worker_processes 1; | |
| error_log /var/log/nginx/error_log info; | |
| events { | |
| worker_connections 1024; | |
| use epoll; | |
| } |