I hereby claim:
- I am flamefork on github.
- I am flamefork (https://keybase.io/flamefork) on keybase.
- I have a public key ASB6DJeDWcCwKKg7rWlnOHKWPBgBh1Ze4NvJnYYaGaxRHgo
To claim this, I am signing this object:
| #!/bin/bash | |
| cd ~ | |
| mkdir mesh | |
| cd mesh | |
| cat <<EOF > package.json | |
| { | |
| "scripts": { | |
| "dev": "mesh dev" | |
| }, |
| class C45b < Formula | |
| desc "Tool for communicating with the Chip45 AVR bootloader" | |
| homepage "https://github.com/bullestock/c45b" | |
| head "https://github.com/bullestock/c45b.git" | |
| depends_on "qt@4" => :build | |
| def install | |
| system "qmake", "PREFIX=#{prefix}" | |
| system "make" |
I hereby claim:
To claim this, I am signing this object:
| // | |
| // React addon for easier React.DOM building without JSX | |
| // | |
| // Usage: | |
| // | |
| // render: function () { | |
| // return React.addons.tagHelper( | |
| // ['#main.container', | |
| // ['h1', 'Hello!'], | |
| // ['a.andClass.andAnother', { href: '/' }, 'Home']] |
| (def converter (Showdown.converter.)) | |
| (defwidjet comment [c] | |
| [:div.comment | |
| [:h2.commentAuthor (:author c)] | |
| [:span (raw (.makeHtml converter (:text c)))]]) | |
| (defwidget comment-list [comments] | |
| [:div.commentList | |
| (map comment comments)]) |
| # put this into config/initializers | |
| module Rack | |
| module Utils | |
| def parse_nested_query_with_restkit(qs, d = nil) | |
| qs = RestkitConverter.new.convert(qs) if qs[/\[\]/] | |
| parse_nested_query_without_restkit(qs, d) | |
| end | |
| alias_method_chain :parse_nested_query, :restkit | |
| module_function :parse_nested_query |
| -module(persistent_jobs). | |
| -behavior(e2_service). | |
| -behavior(e2_task). | |
| -export([start/3]). | |
| -export([start_link/1]). | |
| -export([init/1, handle_msg/3]). | |
| -export([handle_task/1]). |
| module CarrierWave | |
| module FFMPEG | |
| extend ActiveSupport::Concern | |
| module ClassMethods | |
| def faststart | |
| process :faststart => true | |
| end | |
| def transcode options |
| module SetColumnType | |
| extend ActiveSupport::Concern | |
| included do | |
| class_attribute :custom_column_definitions | |
| def self.set_column_type name, type | |
| raise "Definition for column '#{name}' already exists" if (columns_hash rescue {})[name.to_s].present? | |
| (self.custom_column_definitions ||= {})[name.to_s] = ActiveRecord::ConnectionAdapters::Column.new name, nil, type | |
| end |
| /* | |
| Usage examples | |
| */ | |
| // select * from users where active = true and last_logged_in > '2010-12-01' and type in ('admin, 'moderator') and expires > now() limit 1 | |
| table('users'). | |
| where({active: true}). | |
| where({'last_logged_in >': new Date(2010, 12, 1)}). | |
| where({type: ['admin', 'moderator']}). | |
| where('expires > now()'). |