# This example does an AJAX lookup and is in CoffeeScript
$('.typeahead').typeahead(
# source can be a function
source: (typeahead, query) ->
# this function receives the typeahead object and the query string
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
#!ipxe | |
set coreos-version dev-channel | |
set base-url http://storage.core-os.net/coreos/amd64-generic/${coreos-version} | |
kernel ${base-url}/coreos_production_pxe.vmlinuz root=squashfs: state=tmpfs: sshkey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDK8g2YZv5krwHUm3cnrx/9LjTg8p7sd6d7VPewBItHzYpAYCU5dqJ+uNGlMAFvAsu5mkQ/JbIZSDX+F2eWbtdqO6fqe9Zu31blIs5vcjnKlJQSU2BvschzicowHs3LEXbqx5+PyOATAxuAWH7fjNioT4mPRAUp2xk4mpmUO3wed35RWZGuG36arVNLMTkwoUyrYdeAGPMv9gI1y3fnXZ6eSthAc9+kGDUaAF/3ft7GMIT40x/yOE9zOpmqKMdndlj2tQJvVbUPD8YFgArGQI+JzX6gJdRnvuMmnq0tYkYTbx4MyML76k9cIFyAWu6550MpSbu6y66KJif8mt32p0QB torsten@torstenek.com" | |
initrd ${base-url}/coreos_production_pxe_image.cpio.gz | |
boot |
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
#!ipxe | |
set coreos-version dev-channel | |
set base-url http://storage.core-os.net/coreos/amd64-generic/${coreos-version} | |
kernel ${base-url}/coreos_production_pxe.vmlinuz root=squashfs: state=tmpfs: sshkey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAYQC2PxAKTLdczK9+RNsGGPsz0eC2pBlydBEcrbI7LSfiN7Bo5hQQVjki+Xpnp8EEYKpzu6eakL8MJj3E28wT/vNklT1KyMZrXnVhtsmOtBKKG/++odpaavdW2/AU0l7RZiE= coreos pxe demo" | |
initrd ${base-url}/coreos_production_pxe_image.cpio.gz | |
boot |
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
#!ipxe | |
kernel http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_pxe.vmlinuz root=squashfs: state=tmpfs: sshkey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDK8g2YZv5krwHUm3cnrx/9LjTg8p7sd6d7VPewBItHzYpAYCU5dqJ+uNGlMAFvAsu5mkQ/JbIZSDX+F2eWbtdqO6fqe9Zu31blIs5vcjnKlJQSU2BvschzicowHs3LEXbqx5+PyOATAxuAWH7fjNioT4mPRAUp2xk4mpmUO3wed35RWZGuG36arVNLMTkwoUyrYdeAGPMv9gI1y3fnXZ6eSthAc9+kGDUaAF/3ft7GMIT40x/yOE9zOpmqKMdndlj2tQJvVbUPD8YFgArGQI+JzX6gJdRnvuMmnq0tYkYTbx4MyML76k9cIFyAWu6550MpSbu6y66KJif8mt32p0QB torsten@torstenek.com" | |
initrd http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_pxe_image.cpio.gz | |
boot |
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
#!ipxe | |
kernel http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_pxe.vmlinuz | |
initrd http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_pxe_image.cpio.gz | |
boot |
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
ubuntu@camunda-engine:~$ sudo /opt/shipyard-agent -url http://192.168.1.193:8000 -register | |
2014/03/17 16:08:04 Using 10.0.1.25 for the Docker Host IP for Shipyard | |
2014/03/17 16:08:04 If this is not correct or you want to use a different IP, please update the host in Shipyard | |
2014/03/17 16:08:04 Registering at http://192.168.1.193:8000 | |
2014/03/17 16:08:04 Agent Key: 95b62c466ecb488c8afbf1b4738f313a | |
ubuntu@camunda-engine:~$ sudo /opt/shipyard-agent -url http://192.168.1.193:8000 -key 95b62c466ecb488c8afbf1b4738f313a | |
2014/03/17 16:08:43 Shipyard Agent (http://192.168.1.193:8000) | |
2014/03/17 16:08:43 Listening on :4500 | |
2014/03/17 16:08:48 Error requesting images from Docker: Get http://127.0.0.1:4243/images/json?all=0: dial tcp 127.0.0.1:4243: connection refused |
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
Verifying I am +torstenek on my passcard. https://onename.com/torstenek |
I hereby claim:
- I am torstenek on github.
- I am torstenek (https://keybase.io/torstenek) on keybase.
- I have a public key ASBvmb4BgUFLzw423YbpIfDVuRx6xfoCjCiLW5nuxun-1Qo
To claim this, I am signing this object:
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
Future<String> fetchUserOrder() => | |
// Imagine that this function is | |
// more complex and slow. | |
Future.delayed( | |
Duration(seconds: 2), | |
() => 'Large Latte', | |
); | |
void main() async { |
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
/* | |
Install this script as a pre-request Script on your Postman collection. | |
Define Auth_Url, and Basic_Auth as local variables on the collection. | |
Define OAuth_Token, OAuth_Timestamp, ExpiresInTime, OAUTH_USERNAME, OAUTH_PASSWORD and OAUTH_REFRESH_TOKEN | |
in the associated Postman environment. | |
*/ | |
var tokenDate = new Date(2010, 1, 1); | |
var tokenTimestamp = pm.environment.get("OAuth_Timestamp"); | |
if (tokenTimestamp) { | |
tokenDate = Date.parse(tokenTimestamp); |
OlderNewer