Skip to content

Instantly share code, notes, and snippets.

View dipil-saud's full-sized avatar

Dipil Saud dipil-saud

  • Agrian
  • Kathmandu, Nepal
View GitHub Profile
@dipil-saud
dipil-saud / transmission.rb
Created May 7, 2015 06:03
Homebrew formula for transmission torrent client with transmission-remote seto to connect by default to 127.0.0.1
require "formula"
class Transmission < Formula
homepage "http://www.transmissionbt.com/"
url "https://transmission.cachefly.net/transmission-2.84.tar.xz"
sha1 "455359bc1fa34aeecc1bac9255ad0c884b94419c"
option "with-nls", "Build with native language support"
depends_on "pkg-config" => :build
http://developer.vimeo.com/apis/simple
rvm install 1.9.3-p194 --with-gcc=clang
Fixes this error In Mac:
```
In file included from ./include/ruby/ruby.h:64,
from ./include/ruby.h:32,
from main.c:13:
/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
@dipil-saud
dipil-saud / .pryrc
Created February 10, 2012 04:13
My pryrc file
CodeRay.scan("example", :ruby).term # just to load necessary files
CUSTOM_COLORS = {
:constant => '1;34', # Bold Midnight Blue #191970
:class_variable => '1;34',
:symbol => '1;31' # will make symbols bolded and light red on my terminal
}
Pry.config.prompt = [
proc { |target_self, nest_level, pry|
title: bizcard-digitization-with-awesome-badges
public: false
description: A sample line to take an image of a business card, process it so worker can easily read it and then digitize it
department: Digitization
input_formats:
- name: image_url
required: true
valid_type: url
defaults write /Applications/Stickies.app/Contents/Info LSUIElement 1
# Stickies is the name of the application, replace with the custom application
# Change 1 to 0 to turn the feature off
************** OR **********************
# Find the application, usually in the applications folder
# Right click and 'open package contents'
# === To a File
#
# CSV.open("path/to/file.csv", "wb") do |csv|
# csv << ["row", "of", "CSV", "data"]
# csv << ["another", "row"]
# # ...
# end
background-image: -moz-radial-gradient(center top , ellipse farthest-side, rgba(16, 83, 130, 0.5), rgba(16, 83, 130, 0) 75%), -moz-radial-gradient(center top , ellipse farthest-side, rgba(180, 218, 244, 0.5), rgba(180, 218, 244, 0)), -moz-radial-gradient(center top , ellipse farthest-side, rgba(180, 218, 244, 0.3), rgba(180, 218, 244, 0));
background-repeat: no-repeat;
background-size: 100% 5px, 100% 50px, 100% 100%;
height: 30%;
module CustomMatchers
def define_constant(expected)
DefineConstant.new(expected)
end
class DefineConstant
def initialize(expected_constant)
@expected_constant = expected_constant
end