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 'singleton' | |
| class NothingClass | |
| include Singleton | |
| def bind | |
| self | |
| end | |
| def map |
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
| module CreatedAt | |
| module ClassMixin | |
| def new(*) | |
| obj = super | |
| obj.instance_variable_set(:@_created_at, Time.now) | |
| obj | |
| end | |
| 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
| (function () { | |
| "use strict"; | |
| var first = function (arr, c) { | |
| c(arr[0]); | |
| }; | |
| var rest = function (arr, c) { | |
| c(arr.slice(1)); | |
| }; |
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
| source "https://rubygems.org" | |
| gem "sinatra" |
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
| ########################################### | |
| # IMPORTANT NOTE: | |
| # | |
| # As of asuswrt-merlin 380.67 Beta, you | |
| # can now configure SSL certificates from | |
| # the Webui, making these instructions | |
| # unnecessary. | |
| ########################################### | |
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
| $ brew install go | |
| ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/go-1.1.2.mountain_lion.bottle.tar.gz | |
| Already downloaded: /Library/Caches/Homebrew/go-1.1.2.mountain_lion.bottle.tar.gz | |
| ==> Pouring go-1.1.2.mountain_lion.bottle.tar.gz | |
| ==> Caveats | |
| <snip> | |
| ==> Summary | |
| /usr/local/Cellar/go/1.1.2: 3918 files, 110M | |
| $ echo $GOROOT | |
| /usr/local/Cellar/go/1.1.2 |
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
| # If the conditionals evaluate to false, the key wouldn't be present in the hash | |
| Person.new( | |
| first_name: params[:first_name], | |
| last_name: params[:last_name], | |
| age: params[:age] if params[:age].to_i > 18, | |
| bio: params[:bio] unless params[:bio].blank?) | |
| # This would be equivalent to |
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
| brew install qt # should already be done | |
| brew install qwt # should already be done | |
| brew install portaudio # should already be done | |
| brew install wget # makes some downloading easier | |
| # set up your virtualenv (`workon friture` if you've already created it) | |
| mkvirtualenv friture | |
| cd /tmp |
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
| >> load 'string_sayer.rb' | |
| >> "Hello, world!" | |
| => "Hello, world!" |
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
| GNU GENERAL PUBLIC LICENSE | |
| Version 3, 29 June 2007 | |
| Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | |
| Everyone is permitted to copy and distribute verbatim copies | |
| of this license document, but changing it is not allowed. | |
| Preamble | |
| The GNU General Public License is a free, copyleft license for |