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 ProcessLock | |
def initialize(filename) | |
FileUtils.touch(@filename = filename) | |
end | |
def acquire! | |
File.open(@filename, 'r+') do |f| | |
lock(f, false) do | |
f.truncate(f.write(Process.pid)) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="http://zeptojs.com/zepto.js" type="text/javascript"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.2/raphael-min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/bacon.js/0.7.2/bacon.js" type="text/javascript"></script> | |
<style> | |
html, body { | |
height: 100%; | |
width: 100%; |
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
# see how well you are doing localizing your site by flipping all localized text upside-down! | |
# anything being loaded from your en.yml will now be quite obvious! | |
if ENV['REVERSE'] | |
module I18n::Backend::Base | |
def flip(c) | |
case c | |
when "a" then return "\u0250" | |
when "b" then return "q" | |
when "c" then return "\u0254" |
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
Flibble Tab Order Version: 0.2.1 | |
------------------------------ | |
This file should not be included in the Codea project. | |
#Main | |
#FlbAnim | |
#FlbButton | |
#FlbCamera | |
#FlbController | |
#FlbEmitter | |
#FlbParticle |
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
<!-- You need to transform Val from a binary to a list and back again --> | |
<setdynvars sourcetype="eval" code="fun({Pid,DynVars})-> | |
{ok, Val} = ts_dynvars:lookup(authenticity_token, DynVars), | |
list_to_binary(http_uri:encode(binary_to_list(Val))) | |
end."> | |
<var name="escaped_authenticity_token" /> | |
</setdynvars> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
* { | |
padding: 0; | |
margin: 0; | |
} | |
html, body { | |
height: 100%; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
* { | |
padding: 0; | |
margin: 0; | |
} | |
html, body { | |
height: 100%; |
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 'jekyll' | |
gem 'wdm', '>= 0.1.0' | |
gem 'hitimes', :platforms => :ruby # not sure if this works, had to install the pure ruby version manually (see build.sh) |
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
font-family: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif; |
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
// background-image: radial-gradient(circle at 50% 50%, spin(rgba(255,221,0,1), 0) 29%, spin(rgba(255,221,0,1), -16%) 120%); | |
background-image: radial-gradient(circle at 50% 50%, spin(rgba(0,116,217,1), -16%) 29%, spin(rgba(0,116,217,1), 0) 120%); |