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
let blacklists = ["https://mail.google.com/*"] | |
map j scrollPageDown | |
map k scrollPageUp |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd"> | |
<meta> | |
<author>Seon-Wook Park</author> | |
</meta> | |
<bindings> | |
<select itemPath="feed.entry" produces="XML"> | |
<inputs> | |
<key id='url' type='xs:string' paramType='variable' required='true' /> |
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 'optparse' | |
unless File.exists?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
GEMFILE | |
system 'bundle' | |
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 'fringe-helper) | |
(require 'flymake) | |
(defvar flymake-fringe-overlays nil) | |
(make-variable-buffer-local 'flymake-fringe-overlays) | |
(defadvice flymake-make-overlay (after add-to-fringe first | |
(beg end tooltip-text face mouse-face) | |
activate compile) | |
(push (fringe-helper-insert-region |
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 flymake handler for ruby-mode files | |
;;; | |
;;; Author: Steve Purcell | |
;;; Homepage: http://github.com/purcell/emacs.d/blob/master/site-lisp/flymake-ruby/flymake-ruby.el | |
;;; | |
;;; Usage: | |
;;; (require 'flymake-ruby) | |
;;; (add-hook 'ruby-mode-hook 'flymake-ruby-load) | |
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
LazyStruct.new({:a=>1, :b => 2}).a # => 2 | |
# That's wrong. Why? |
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
= semantic_form_for @user do |form| | |
= form.inputs do | |
= form.input :name, :label => 'Name' | |
= form.input :business_unit | |
= form.buttons |
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
class BusinessUnit | |
include Mongoid::Document | |
field :name, :type => String | |
embeds_many :users | |
end |