| name | wake-up |
|---|---|
| description | Help yourself get oriented after a long sleep. |
This skill helps you discover where you are, as it takes a second to get reoriented with the world after sleep.
| import AVFoundation | |
| import Accelerate | |
| // MARK: - Delegate Protocol | |
| /// Receives raw audio buffer callbacks from the microphone. | |
| public protocol MicrophoneBufferManagerDelegate: AnyObject { | |
| /// Called on every audio tap with a fresh buffer of raw PCM samples. | |
| /// - Parameters: | |
| /// - manager: The `MicrophoneBufferManager` that produced the buffer. |
| # vim:ft=zsh ts=2 sw=2 sts=2 | |
| # | |
| # agnoster's Theme - https://gist.github.com/3712874 | |
| # A Powerline-inspired theme for ZSH | |
| # | |
| # # README | |
| # | |
| # In order for this theme to render correctly, you will need a | |
| # [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). | |
| # Make sure you have a recent version: the code points that Powerline |
| for FILE in $(find . -type f -name \*.template.yml) ; do | |
| NEW_FILE=${FILE::${#FILE}-4} | |
| python -c 'import sys, yaml, json; yaml.dump(json.load(sys.stdin), sys.stdout, indent=4)' < $FILE > $NEW_FILE | |
| done |
| #### Contents of the preconfiguration file (for xenial) | |
| ### Localization | |
| # Preseeding only locale sets language, country and locale. | |
| d-i debian-installer/locale string en_US | |
| # The values can also be preseeded individually for greater flexibility. | |
| #d-i debian-installer/language string en | |
| #d-i debian-installer/country string NL | |
| #d-i debian-installer/locale string en_GB.UTF-8 | |
| # Optionally specify additional locales to be generated. |
| var http = require('http') | |
| var server | |
| function onRequest(req, res) { | |
| console.log('[' + this.name + ']', req.method, req.url) | |
| res.writeHead(200, {'Content-Type': 'text/plain'}) | |
| res.end('Hello World\n') | |
| } | |
| function onListening() { |
| float Q_rsqrt( float number ) | |
| { | |
| long i; | |
| float x2, y; | |
| const float threehalfs = 1.5F; | |
| x2 = number * 0.5F; | |
| y = number; | |
| i = * ( long * ) &y; // evil floating point bit level hacking | |
| i = 0x5f3759df - ( i >> 1 ); // what the fuck? |
| function git_prompt_info() | |
| { | |
| ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
| echo "("${ref#refs/heads/}")" | |
| } | |
| # define colors | |
| C_DEFAULT="\[\033[m\]" | |
| C_WHITE="\[\033[1m\]" | |
| C_BLACK="\[\033[30m\]" |