This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'formula' | |
| class Zendframework < Formula | |
| url 'http://framework.zend.com/releases/ZendFramework-1.10.3/ZendFramework-1.10.3.tar.gz' | |
| homepage 'http://framework.zend.com' | |
| md5 'da0b497b2446f5612895d689821624e2' | |
| version '1.10.3' | |
| def install | |
| prefix.install Dir['*'] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Picture < ActiveRecord::Base | |
| attr_accessible :picture, :picture_105px_width, :picture_120px_width | |
| has_many :pin | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir -p ~/'Library/Application Support/Avian/Bundles' | |
| cd ~/'Library/Application Support/Avian/Bundles' && git clone https://github.com/cucumber/cucumber-tmbundle Cucumber.tmbundle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y install build-essential git-core aptitude | |
| aptitude -y remove rbenv | |
| # Install rbenv | |
| git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
| # Set permissions | |
| chgrp users -R /usr/local/rbenv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rubygems' | |
| require 'nokogiri' | |
| require 'gollum' | |
| wiki = Gollum::Wiki.new('auxwiki') | |
| name = 'Ilja Krijger' | |
| email = '[email protected]' | |
| f = File.open("AuxiliumWiki-20110705103347.xml") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def normalized_content_from_content | |
| if client | |
| options = { | |
| blacklisted_elements: client.article_blacklisted_elements, | |
| whitelisted_tags: client.article_whitelisted_tags, | |
| } | |
| else | |
| options = nil | |
| end | |
| ContentNormalization.new(content, options).normalized_content if content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| cls | |
| :start | |
| echo. | |
| echo 1 Fine Arts | |
| echo 2 Classics | |
| echo 3 Computer Science | |
| echo 4 English | |
| echo 5 Mathematics | |
| echo 6 Modern World Languages and Culture |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| hits = [] | |
| checks = { | |
| '_spec\.rb$' => ['focus:[:space:]*true', ',[:space:]*:focus'], | |
| '\.(rb|haml|slim|erb)$' => ['binding\.pry', 'debugger', 'byebug'], | |
| '\.(js|coffee)$' => ['debugger'], | |
| } | |
| # Find the names of all the filenames that have been (A)dded (C)opied or (M)odified |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| # Staged files | |
| { git diff --name-only --diff-filter=d --relative & | |
| # Staged files | |
| git diff --cached --name-only --relative & | |
| # Unstaged new files | |
| git ls-files --others --exclude-standard } | | |
| # Remove duplicates | |
| sort -u | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // CoreDataController.swift | |
| // | |
| // Created by Keith Harrison http://useyourloaf.com | |
| // Copyright (c) 2017 Keith Harrison. All rights reserved. | |
| // | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are met: | |
| // | |
| // 1. Redistributions of source code must retain the above copyright |
OlderNewer