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
| From 3bfcdec1cfbf155fade70afbb0a8aee91a46d5e3 Mon Sep 17 00:00:00 2001 | |
| From: Eric Rykwalder <e.rykwalder@gmail.com> | |
| Date: Thu, 19 Dec 2013 18:38:23 -0800 | |
| Subject: [PATCH] fix disableTouch issue on crafty | |
| --- | |
| static/libs/crafty.js | 9 ++++++--- | |
| static/systems/home.js | 2 ++ | |
| 2 files changed, 8 insertions(+), 3 deletions(-) |
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 s2c(x) | |
| case x | |
| when Hash then Hash[*x.flatten(1).map{|x| s2s(x)}] | |
| when Array then x.map{|x| s2s(x)} | |
| when Symbol then String(x).camelcase | |
| else x | |
| 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
| require 'ostruct' | |
| require 'minitest/autorun' | |
| class P | |
| attr_reader :x, :y | |
| def initialize(x,y) | |
| @x, @y = x, y | |
| 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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Action": [ | |
| "autoscaling:Describe*", | |
| "cloudformation:DescribeStacks", | |
| "cloudformation:DescribeStackEvents", | |
| "cloudformation:DescribeStackResources", | |
| "cloudformation:GetTemplate", |
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
| FROM ubuntu | |
| MAINTAINER "Bobby Wilson" | |
| RUN apt-get update | |
| RUN apt-get install curl -y | |
| RUN cd /usr/local; curl -O http://nodejs.org/dist/v0.10.16/node-v0.10.16-linux-x64.tar.gz | |
| RUN cd /usr/local; tar xzf node-v0.10.16-linux-x64.tar.gz | |
| ENV PATH /usr/local/bin:/usr/sbin:/bin:/usr/local/node-v0.10.16-linux-x64/bin | |
| ADD . /app | |
| EXPOSE 8000:8000 | |
| ENV PORT 8000 |
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=web.1 dyno=heroku.2808254.d97d0ea7-cf3d-411b-b453-d2943a50b456 sample#load_avg_1m=2.46 sample#load_avg_5m=1.06 sample#load_avg_15m=0.99 | |
| source=web.1 dyno=heroku.2808254.d97d0ea7-cf3d-411b-b453-d2943a50b456 sample#memory_total=21MB sample#memory_rss=21.22MB sample#memory_cache=0.00MB sample#memory_swap=0.00MB sample#memory_pgin=348836pages sample#memory_pgout=343403pages |
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
| --- | |
| l2met: | |
| default-attributes: | |
| type: gauge | |
| aggregate: true | |
| http.throughput: | |
| http.accept: | |
| summarize_function: sum | |
| group_function: sum | |
| summary_function: count |
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
| # A program that works jobs in newly created UNIX | |
| # process by calling fork. The number of processes | |
| # running at any given time is bounded by our use | |
| # of a sized queue. | |
| require 'thread' | |
| # Run at most 4 UNIX processes for any given time. | |
| @limiter = SizedQueue.new(4) |
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 render_html | |
| dir = Rails.root.join("app", "views", "users") | |
| view = ActionView::Base.new(dir, :user => @user) | |
| view.extend(ApplicationHelper) | |
| view.render(file: 'show', layout: '../layouts/application.html.erb') | |
| 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
| #encoding UTF-8 | |
| require 'openssl' | |
| require 'base64' | |
| module FernetLite | |
| MAX_CLOCK_SKEW = 60 | |
| VERSION = 0x80 | |
| def self.split_key(k) | |
| dec = Base64.urlsafe_decode64(k) |