THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| eXtreme Go Horse (XGH) Process | |
| Quelle: http://gohorseprocess.wordpress.com | |
| Übersetzung ursprünglich von https://gist.github.com/Neffez/f8d907ba8289f14e23f3855011fa4e2f | |
| 1. Ich denke, also ist es nicht XGH. | |
| In XGH wird nicht gedacht, es wird das erste gemacht, was in den Sinn kommt. Es gibt auch keine zweite Option, die erste ist schneller. | |
| 2. Es gibt 3 Wege ein Problem zu lösen: den richtigen Weg, den falschen Weg und den XGH Weg, welcher exakt wie der falsche ist, aber schneller. |
| " When the cursor is hold on a word, that word is highlighted. | |
| " When the cursor is moving, the highlight is hidden | |
| set updatetime=300 | |
| au! CursorMoved * set nohlsearch | |
| au! CursorHold * set hlsearch | let @/='\<'.expand("<cword>").'\>' | |
| set hlsearch |
| (function () { | |
| $.support.placeholder = false; | |
| var test = document.createElement('input'); | |
| if ('placeholder' in test) { | |
| $.support.placeholder = true; | |
| return function () { } | |
| } else { | |
| return function () { | |
| $(function () { | |
| var active = document.activeElement; |
| class Playlist < ActiveRecord::Base | |
| has_and_belongs_to_many :users | |
| belongs_to :owner, class_name: "User", inverse_of: :owned_playlist | |
| def editable_by?(user) | |
| self.owner == user | |
| end | |
| end | |
| class User < ActiveRecord::Base |