Put flip somewhere in your $PATH and chmod a+x it.
Copy fuck into ~/.bashrc.
| Simplify[RSolve[{a[n] == (B + 1) a[n - 1] - a[n - 2], a[0] == 0, a[1] == B}, a[n], n]] | |
| Block[{B = 2}, Simplify[Table[a[n] /. First[%], {n, 10}]]] |
| """A simple implementation of a greedy transition-based parser. Released under BSD license.""" | |
| from os import path | |
| import os | |
| import sys | |
| from collections import defaultdict | |
| import random | |
| import time | |
| import pickle | |
| SHIFT = 0; RIGHT = 1; LEFT = 2; |
| for (UIView *subview in searchBar.subviews) { | |
| for (UIView *subSubview in subview.subviews) { | |
| if ([subSubview conformsToProtocol:@protocol(UITextInputTraits)]) { | |
| UIView<UITextInputTraits> *textInputField = (UIView<UITextInputTraits> *)subSubview; | |
| textInputField.returnKeyType = UIReturnKeyDone; | |
| break; | |
| } | |
| } | |
| } |
| // Code to handle up/down cursor motion in a UITextView. | |
| // | |
| // Based on code from OmniGroup's OUITextView | |
| // https://github.com/omnigroup/OmniGroup/blob/master/Frameworks/OmniUI/iPad/OUITextView.m | |
| // | |
| #import "TextView.h" | |
| @interface TextView () | |
| height: 650 | |
| license: mit |
| #!/bin/sh | |
| # 1.切换到工程目录 | |
| # 2.用gource-gravatar-getter将头像下载到.git/avatar,格式类似 .git/avatar/mckelvin.png | |
| # | |
| gource --seconds-per-day 0.6 \ | |
| --user-image-dir .git/avatar \ | |
| --multi-sampling -1360x760 \ | |
| --output-ppm-stream /tmp/vis_tmp.ppm \ | |
| --disable-progress \ | |
| --hide mouse \ |
| // XCode 4.2.1 | |
| @implementation NSString(EmojiExtension) | |
| - (NSString*)removeEmoji { | |
| __block NSMutableString* temp = [NSMutableString string]; | |
| [self enumerateSubstringsInRange: NSMakeRange(0, [self length]) options:NSStringEnumerationByComposedCharacterSequences usingBlock: | |
| ^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop){ |
| /** | |
| * @param adjacencyList, oddVertices, EulerianPath. | |
| */ | |
| public <P extends Integer, Q extends ArrayList<P>> ArrayList<P> | |
| hierholzersAlgorithm(HashMap<P, Q> adjacencyList, ArrayList<P> oddVertices, ArrayList<P> path) { | |
| P currentVertex=null; | |
| //If path is not empty, the start vertex should be in the path. | |
| //Check if Semi-Eulerian. If yes, start traversing from one of them. | |
| if(oddVertices.size()==2) { |
| * | |
| !.gitignore | |
| !alternative.yaml | |
| !*.custom.yaml | |
| !kaomoji.*.yaml |