I have set up the gitignore to ignore almost everything apart from .org files.
*
!.gitattributes
!.gitignore
!README.md
!.gitkeep
| <?php | |
| $query = <<<'GRAPHQL' | |
| query GetUser($user: String!) { | |
| user (login: $user) { | |
| name | |
| repositoriesContributedTo { | |
| totalCount | |
| } |
| " .vimrc | |
| " Author: Gary Cheeseman <[email protected]> | |
| " http://gary.cheeseman.me.uk | |
| " | |
| " vim: foldmethod=marker | |
| " | |
| " The line below allows me to update the Gist with the command :Gist | |
| " GistID: 5821422 | |
| "----------------------------------------------------------------------------- |
| # Tkinter and GPIO together | |
| from Tkinter import * | |
| import RPi.GPIO as GPIO | |
| GPIO.setmode(GPIO.BCM) | |
| GPIO.setup(24, GPIO.OUT) | |
| GPIO.output(24, GPIO.LOW) | |
| def toggle(): |
Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist.
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
RE: teampoltergeist/poltergeist#44
Use Rack::SimpleEndpoint to prevent Poltergeist/PhantomJS from crashing on TTF fonts.
Create config/initializers/middleware-deny-ttf-to-phantomjs-under-test.rb:
if Rails.env.test?
require 'rack/contrib/simple_endpoint'
Rails.application.config.middleware.insert_after Rack::Runtime, Rack::SimpleEndpoint, /\.ttf$/ do |req, res|| #------------------------------------------------------------------------------ | |
| # Make things VirtualEnv aware (Linux version). | |
| # More info: http://www.swegler.com/becky/blog/2011/08/28/python-django-mysql-on-windows-7-part-3-ipython-virtual-environments/ | |
| # add this to the end of ipython_config | |
| # (or course, for virtualenvs created via --no-site-packages, it would | |
| # be much easier just to install iPython) | |
| # | |
| # Also consider sourcing this file from ipython_config with execfile(). | |
| # | |
| #------------------------------------------------------------------------------ |
| class AuthorForm(ModelForm): | |
| def __init__(self, *args, **kwargs): | |
| self.helper = FormHelper() | |
| self.helper.form_tag = False | |
| self.helper.layout = Layout( | |
| Field('name'), | |
| ) | |
| super(AuthorForm, self).__init__(*args, **kwargs) | |
| class Meta: | |
| model = Author |
| This playbook has been removed as it is now very outdated. |
| (emacs-version nil) | |
| ; => | |
| ;"GNU Emacs 24.0.97.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) | |
| ; of 2012-05-16 on bob.porkrind.org" | |
| (add-to-list 'load-path "~/.emacs.d/plugins/yasnippet") | |
| ; => | |
| ; ("~/.emacs.d/plugins/yasnippet" "~/.emacs.d/rc-site-lisp" "/Users/cmmagid/.emacs.d/el-get/package/elpa/idle-highlight-mode-1.1.2" "/Users/cmmagid/.emacs.d/el-get/package/elpa/rainbow-mode-0.2" "/Users/cmmagid/.emacs.d/el-get/package/elpa/ruby-electric-1.1" "/Users/cmmagid/.emacs.d/el-get/package/elpa/save-visited-files-1.2" "/Users/cmmagid/.emacs.d/el-get/package/elpa/wrap-region-0.6.0" "/Users/cmmagid/.emacs.d/el-get/yasnippet" "/Users/cmmagid/.emacs.d/el-get/yaml-mode" "/Users/cmmagid/.emacs.d/el-get/vline" "/Users/cmmagid/.emacs.d/el-get/tree-mode" "/Users/cmmagid/.emacs.d/el-get/rinari/util/jump/" ...) | |
| (require 'yasnippet) | |
| ; => |