I hereby claim:
- I am shtirlic on github.
- I am shtirlic (https://keybase.io/shtirlic) on keybase.
- I have a public key whose fingerprint is 8E9F DE81 F95E 7CE2 C672 6B79 9D70 05BA E592 87C2
To claim this, I am signing this object:
source 'http://rubygems.org' | |
gem 'sunzi' | |
gem 'rake' | |
gem 'fog' |
I hereby claim:
To claim this, I am signing this object:
class Item < ActiveRecord::Base | |
has_many :places, conditions: Proc.new { "filter_status = #{@filter_status}"} | |
attr_accessor :filter_status | |
end |
#!/bin/sh | |
isFullyCharged=`ioreg -n AppleSmartBattery | grep FullyCharged | awk '{ print $5 }'` | |
timeLeft=`ioreg -n AppleSmartBattery | grep TimeRemaining | awk '{ print $5 }'` | |
isCharging=`ioreg -n AppleSmartBattery | grep IsCharging | awk '{ print $5 }'` | |
if [ $isFullyCharged = "Yes" ] ; then | |
output="Full Charge" | |
else | |
output="$timeLeft mins" | |
if [ $isCharging = "Yes" ] ; then |
[] | |
HELLO | |
hello | |
[{:upcase!=>"hello"}, {:downcase!=>"HELLO"}] | |
[Finished in 0.1s] |
def true.if_true; yield end; | |
def false.if_true; end; | |
def true.if_false; end; | |
def false.if_false; yield end; | |
a = true |
require 'socket' | |
require "http/parser" | |
READ_CHUNK = 1024 * 4 | |
socket = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM) | |
addr = Socket.pack_sockaddr_in(9799, '127.0.0.1') | |
socket.bind(addr) | |
socket.listen(Socket::SOMAXCONN) | |
socket.setsockopt(:SOCKET, :REUSEADDR, true) |
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules") | |
include(android.toolchain) | |
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) |
#include <stdlib.h> | |
#include <stdio.h> | |
/* Include the mruby headers */ | |
#include <mruby.h> | |
#include <mruby/proc.h> | |
#include <mruby/data.h> | |
#include <mruby/compile.h> | |
int main(int argc, const char * argv[]) |
require 'formula' | |
class Tsocks < Formula | |
# The original is http://tsocks.sourceforge.net/ | |
# This GitHub repo is a maintained fork with OSX support | |
homepage 'http://github.com/pc/tsocks' | |
head 'https://github.com/pc/tsocks.git' | |
depends_on 'autoconf' => :build if MacOS.xcode_version.to_f >= 4.3 |