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
" CtrlP OS-X Menu remapping | |
if has("gui_macvim") | |
set guioptions=egmrt | |
macmenu &File.New\ Tab key=<D-S-t> | |
set guifont=Menlo\ for\ Powerline:h16 | |
endif | |
map <D-Down> <C-W><Down> | |
map <D-Up> <C-W><Up> | |
map <D-Left> <C-W><Left> |
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
# this method will take in a hash of date fragments and turns it into a date from_now | |
# I can't think of a more descriptive name at the moment, i will just use an example: | |
#>> future_date_from_hash(:days => 5, :minutes => 3, :month => 1) | |
#eq (5.days + 3.minutes 1.month).from_now | |
def future_date_from_hash(hash = {}) | |
hash.to_a.map{|d| d.last.send(d.first)}.inject(&:+).from_now | |
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
set nocompatible | |
set mouse=a | |
" lets use ack instead of grep. add default flags if needed | |
set grepprg=ack | |
function! Ack(args) | |
tabnew | |
execute "silent! grep " . a:args | |
botright copen | |
endfunction |
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
bind -v | grep keymap | cut -c 12- |
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
xcodebuild -activetarget -configuration Debug -sdk iphonesimulator4.2 | |
/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication path_to_your_app/YourFavouriteApp.app/YourFavouriteApp |
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
❷ > QUEUE=* rake resque:work --trace | |
** Invoke resque:work (first_time) | |
** Invoke resque:preload (first_time) | |
** Invoke resque:setup (first_time) | |
** Execute resque:setup | |
** Execute resque:preload | |
rake aborted! | |
No such file to load -- devise/confirmations_controller | |
/Users/stefan/.rvm/gems/ruby-1.9.2-p290@my-rails-project/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:306:in `rescue in depend_on' | |
/Users/stefan/.rvm/gems/ruby-1.9.2-p290@my-rails-project/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:301:in `depend_on' |
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
/* Titrator manual detector based */ | |
//program statuses | |
#define WAITING 0 | |
#define WORKING 1 | |
int programStatus; | |
const int VOLUME = 10; //microliters - titrant | |
//the outputs pins |
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
Pod::Spec.new do |s| | |
s.name = 'PocketSVG' | |
s.version = '0.0.1' | |
s.license = 'Attribution-ShareAlike 3.0 Unported' | |
s.summary = 'Easily convert your SVG files into CGPaths, CAShapeLayers, and UIBezierCurves.' | |
s.homepage = 'https://github.com/arielelkin/PocketSVG' | |
s.author = { 'Ariel Elkin' => '[email protected]' } | |
s.source = { :git => 'git://github.com/arielelkin/PocketSVG.git' } | |
s.ios.source_files = '*.{h,m}' |
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
/* | |
robotev.com | |
*/ | |
//######################################################################################################### | |
const int _nom_cycles = 3; /// Broii izmerwania ; Minimalen 2; Maksimalen borii 30 |
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
#include <stdio.h> | |
#include <uv.h> | |
static void on_close(uv_handle_t* handle); | |
static void on_connect(uv_connect_t* req, int status); | |
static void on_write(uv_write_t* req, int status); | |
static uv_loop_t *loop; | |
static uv_buf_t alloc_cb(uv_handle_t* handle, size_t size) { |
OlderNewer