This file contains 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
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
[ -s "/Users/kittinun-vantasin/.scm_breeze/scm_breeze.sh" ] && source "/Users/kittinun-vantasin/.scm_breeze/scm_breeze.sh" | |
export ANDROID_HOME=~/Library/Android/sdk | |
export ANDROID_NDK=$ANDROID_HOME/ndk-bundle | |
PATH=/usr/local/sbin:/usr/local/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/ndk-bundle:$PATH | |
alias stree='open -a SourceTree' |
This file contains 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
[color] | |
ui = auto | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] | |
meta = yellow bold | |
frag = magenta bold | |
old = red bold |
This file contains 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 | |
" misc | |
set showcmd | |
set showmatch | |
" indentation | |
set autoindent | |
set smartindent | |
set expandtab |
This file contains 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
package main | |
import ( | |
"fmt" | |
"strings" | |
) | |
func main() { | |
fmt.Println(customParseToFloat64("-12.345678")) | |
} |
This file contains 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
BasedOnStyle: Chromium | |
AlignTrailingComments: true | |
BreakBeforeBraces: Attach | |
ColumnLimit: 0 | |
IndentWidth: 4 | |
KeepEmptyLinesAtTheStartOfBlocks: false | |
MaxEmptyLinesToKeep: 2 | |
ObjCSpaceAfterProperty: true | |
ObjCSpaceBeforeProtocolList: true | |
ObjCBlockIndentWidth: 4 |
This file contains 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
{ | |
"pagination":{ | |
"total_pages":296, | |
"current_page":1, | |
"last_page":false, | |
"previous_page":null, | |
"next_page":2 | |
}, | |
"activities":[ | |
{ |
This file contains 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
- (RACSignal *)rac_requestWithMethod:(NSString *)method path:(NSString *)path parameters:(id)parameters { | |
return [[RACSignal createSignal:^RACDisposable *(id<RACSubscriber> subscriber) { | |
NSError *error; | |
NSURLRequest *request = [self.requestSerializer requestWithMethod:method URLString:[[NSURL URLWithString:path relativeToURL:self.baseURL] absoluteString] parameters:parameters error:&error]; | |
if (error) { | |
[subscriber sendError:error]; | |
return nil; | |
} |
This file contains 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 User(val id: Int, val name: String, val age: Int, val email: String) { | |
class Deserializer : Deserializable<User> { | |
override val deserializer: (JSON) -> Result<User, Exception> = { json -> | |
::User.create. | |
map(json at "id"). | |
apply(json at "name"). | |
apply(json at "age"). | |
apply(json at "email") | |
} |
This file contains 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
// | |
// UIScrollView+RACSupport.h | |
// Taskworld | |
// | |
// Created by Kittinun Vantasin on 8/5/15. | |
// Copyright (c) 2015 Taskworld. All rights reserved. | |
// | |
@import UIKit; |
This file contains 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
import UIKit | |
/*: | |
## Redux | |
A Predictable state container for not just JavaScript apps | |
*/ | |
/*: | |
### Action | |
Payload of information from app to your __Store__ |
OlderNewer