Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| Connect to your Mac's localhost from within a VMWare virtual machine. | |
| - Boot up VMware and fire up your VM (i'm using Windows 7) | |
| - Make sure that the VM is using NAT | |
| - Fire up the command prompt in Windows and type "ipconfig". IN the resulting text look for your IPv4 address. It will be something like 192.168.xxx.xxx | |
| - Now go to your browser in your VM and type that ip address into the url bar but change the last set of digits to be 2 (or 1). | |
| - so as an example if your ip was found to be 192.168.213.200 change it to be 192.168.213.2 | |
| - Assuming that your localhost is running on your mac you should get your localhost in your VM browser. | |
| - If you need to add a non standard port number on the end like 8090 go ahead and do so. |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| .bended-shadow { | |
| position: relative; | |
| width: 500px; | |
| margin: 200px auto; | |
| } | |
| .bended-shadow::before, .bended-shadow::after { | |
| content: ''; | |
| position: absolute; | |
| width: 60%; |
| #!/usr/bin/env ruby | |
| # checkout the readme from the master branch | |
| `git checkout gh-pages; git checkout master README.md` | |
| path = `pwd`.gsub(/\n/, "") | |
| readme_path = File.join(path, "README.md") | |
| index_path = File.join(path, "index.md") | |
| # write the index readme file |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| .list-container { | |
| border-radius: 5px; | |
| border: 1px solid #C5C5C5; | |
| box-shadow: inset 0 1px 0 #FFF; | |
| } | |
| ol { | |
| border: 1px solid transparent; | |
| } |
| @font-face { | |
| font-family: 'EntypoRegular'; | |
| src: url('font/entypo.eot'); | |
| src: url('font/entypo.eot?#iefix') format('embedded-opentype'), | |
| url('font/entypo.woff') format('woff'), | |
| url('font/entypo.ttf') format('truetype'), | |
| url('font/entypo.svg#EntypoRegular') format('svg'); | |
| font-weight: normal; | |
| font-style: normal; | |
| } |
| #element{ | |
| background-image: url('/images/sprite.png'); | |
| background-repeat: no-repeat; | |
| background-position: -3px 0; | |
| } | |
| @media print, screen, | |
| (-webkit-min-device-pixel-ratio: 1.25), | |
| (~`"-o-min-device-pixel-ratio: 1.25/1"`), | |
| (min--moz-device-pixel-ratio: 1.25), |
This is one way to pass some data (API tokens, etc.) to your Jekyll templates without putting it in your _config.yml file (which is likely to be committed in your GitHub repository).
Copy the environment_variables.rb plugin to your _plugins folder, and add any environment variable you wish to have available on the site.config object.
In a Liquid template, that information will be available through the site object. For example, _layouts/default.html could contain:
| { | |
| "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", |