I hereby claim:
- I am nicholasspencer on github.
- I am nicholasspencer (https://keybase.io/nicholasspencer) on keybase.
- I have a public key ASAfP6E2ld8s5HdDKTDH-H94Y1NLagYY0rV6vRkaW95hAwo
To claim this, I am signing this object:
class Tutorial extends StatefulWidget { | |
final Widget child; | |
final bool show; | |
const Tutorial({ | |
@required this.child, | |
this.show = false, | |
Key key, |
#!/usr/bin/env bash | |
scrape_type() { | |
curl https://www.etsy.com/developers/documentation/reference/$1 | pup 'table[id^="resource_fields"] tr:not(:first-child) json{}' | jq '.[] | {"property": .children[0].children[0].text, "type": .children[3].children[0].children[0].text, "secondaryType": (.children[3].children[0].text | try gsub("[\\(\\) ]"; "") catch null) }' | |
} | |
scrape_type $1 | |
exit 0 | |
# ./bin/scrape_type.sh apimethod |
import Foundation | |
infix operator ??=: NilCoalescingPrecedence | |
func ??= <T>(left: inout T?, right: T) -> T? { | |
left = left ?? right | |
return left | |
} | |
class MyClass { | |
private var _onDemand: Date? |
#!/usr/bin/env bash | |
# converts .mov (quicktime screen recordings) to animated .gif images | |
# requires ffmpeg and gifsicle which are easily `brew install`'d | |
gifplease() { | |
ffmpeg -i $1 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=8 > $1.gif | |
gif="$(pwd)/$1.gif" | |
echo "👉 $gif" | |
open -na Safari "file://$gif" | |
} |
struct HashTable<Key: Hashable, Value> { | |
private typealias Element = (key: Key, value: Value) | |
private typealias Bucket = [Element] | |
private typealias IndexPath = (bucket: Int, index: Int?) | |
private var buckets: [Bucket] | |
private(set) var count = 0 | |
public init(capacity: Int) { |
var self = this; |
// ******************************************* | |
// React Component w/ verbose rendering out-of-line | |
// ******************************************* | |
var reactRenderCodeElseWhere = function() { | |
/* maybe do some calculations; smoke some chocolate cigarettes; */ | |
return React.DOM.div ( | |
//attributes | |
{}, | |
//children | |
[ |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// | |
// Intent photoPreviewUploadPageIntent = new Intent(getActivity(), PhotoPreviewUploadPage.class); | |
// photoPreviewUploadPageIntent.putExtras(bundle); | |
// if(!TextUtils.isEmpty(action)){ | |
// photoPreviewUploadPageIntent.setAction(action); | |
// } | |
// photoPreviewUploadPageIntent.putExtra("requestCode", requestCode); | |
// activity.startActivityForResult(photoPreviewUploadPageIntent, | |
// requestCode); | |
// |