CocoaPods project setup
Create a Podfile at the root of your project
platform :ios, '5.0'
pod 'AFNetworking'
pod 'OHAttributedLabel'| // Trie.ts - super simple JS implementation | |
| // https://en.wikipedia.org/wiki/Trie | |
| // ----------------------------------------- | |
| // we start with the TrieNode | |
| class TrieNode<V> { | |
| // we keep a reference to parent | |
| public parent = null; | |
| { | |
| "inputs": [ | |
| { | |
| "detail": { | |
| "IncludeLabel": { | |
| "io.kubernetes.container.name": "nginx-ingress-controller" | |
| }, | |
| "Stderr": true, | |
| "Stdout": true | |
| }, |
| for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done |
| #!/bin/sh | |
| # Script for blocking IP's | |
| # Set path | |
| cd /var/packages/DownloadStation/etc/download/blocklists | |
| # Permissions | |
| chmod 777 ../settings.json | |
| # Edit config file (block) |
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: homebridge | |
| # Required-Start: $network $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: | |
| # Description: HomeKit support for the impatient | |
| ### END INIT INFO | |
| # -*- coding: utf-8 -*- |
| angular.module('myApp', []) | |
| .filter('moment', [ | |
| function () { | |
| return function (date, method) { | |
| var momented = moment(date); | |
| return momented[method].apply(momented, Array.prototype.slice.call(arguments, 2)); | |
| }; | |
| } | |
| ]); |
| wd.addElementAsyncMethod('isShown', function isShown () { | |
| var cb = wd.findCallback(arguments); | |
| var el = this; | |
| return el.getComputedCss('display', function(err, display) { | |
| if (err) cb(err); | |
| return el.getComputedCss('visibility', function(err, visibility) { | |
| if (err) cb(err); | |
| cb(null, display !== 'none' && visibility !== 'hidden'); | |
| }); | |
| }); |
| - (UIViewController *)topViewController{ | |
| return [self topViewController:[UIApplication sharedApplication].keyWindow.rootViewController]; | |
| } | |
| - (UIViewController *)topViewController:(UIViewController *)rootViewController | |
| { | |
| if (rootViewController.presentedViewController == nil) { | |
| return rootViewController; | |
| } | |
Create a Podfile at the root of your project
platform :ios, '5.0'
pod 'AFNetworking'
pod 'OHAttributedLabel'| """GitHub flavoured markdown: because normal markdown has some vicious | |
| gotchas. | |
| Further reading on the gotchas: | |
| http://blog.stackoverflow.com/2009/10/markdown-one-year-later/ | |
| This is a Python port of GitHub code, taken from | |
| https://gist.github.com/901706 | |
| To run the tests, install nose ($ easy_install nose) then: |