$ xcode-select --install
$ sudo xcode-select -s /Applications/Xcode-beta.app/Contents/Developer
$ xcode-select -p
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
//! # A trie that can be saved to and loaded from a file | |
//! | |
//! This crate implements a Trie with char keys. | |
//! The trie can be saved to and loaded from a file on the local filesystem. | |
//! This allows the user to persist the trie between executions. | |
//! | |
//! Basic example: | |
//! | |
//! ```ignore | |
//! let trie_file = "/path/to/trie-file"; |
- Latest Jessie Light : https://downloads.raspberrypi.org/raspbian_lite_latest
- default login/pass : pi/raspberry
- Minibian : https://minibianpi.wordpress.com/features
- expand filsystem :
sudo resize2fs /dev/mmcblk0p2
- clean nvm setup : https://www.losant.com/blog/how-to-install-nodejs-on-raspberry-pi
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
Note: Some older devices such as the Galaxy S III did not get the Chromium based browser with | |
the update to Android 4.2 or later. When Samsung later introduced the Galaxy S3 Neo it did get | |
the new browser. | |
Note: With the Android 4.3 release and version 1.5 of the Chromium browser, Samsung did not | |
enable WebAudio API for the Note 3. All other devices did get the WebAudio API. | |
Note: Samsung did not update the browser version with the upgrade from Android 4.3 to 4.4, | |
but did add getUserMedia and WebRTC functionality. |
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
const crypto = require('crypto') | |
const sign = (value, secret) => { | |
return value + '.' + crypto | |
.createHmac('sha256', secret + '') | |
.update(value + '') | |
.digest('base64') | |
.replace(/\=+$/, '') | |
} |
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
// default exports | |
export default 42; | |
export default {}; | |
export default []; | |
export default foo; | |
export default function () {} | |
export default class {} | |
export default function foo () {} | |
export default class foo {} |
This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.
It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.
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
on alfred_script(q) | |
--todo: Record the last open position | |
set appName to "Finder" | |
set startIt to false | |
tell application "System Events" | |
if not (exists process appName) then | |
set startIt to true | |
else if frontmost of process appName then | |
set visible of process appName to false | |
else |
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
#!/usr/bin/env node #// -*- Mode: Node.js JavaScript; tab-width: 4; -*- | |
/* | |
--- | |
url: http://gist.github.com/441101 | |
name : safari-get-html | |
description : safari-get-html will rock your socks! | |
authors : Thomas Aylott | |
copyright : © 2010 Thomas Aylott | |
license : MIT |
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
# Copyright 2017 The Kubernetes Authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
NewerOlder