This file contains hidden or 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 prerequisites | |
sudo apt-get update -qq >/dev/null | |
sudo apt-get install -qq -y apt-transport-https | |
# install docker | |
wget -nv -O - https://get.docker.com/ | sh | |
# install dokku | |
wget -nv -O - https://packagecloud.io/dokku/dokku/gpgkey | apt-key add - | |
OS_ID="$(lsb_release -cs 2>/dev/null || echo "trusty")" |
This file contains hidden or 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
<?php | |
/** | |
* Minimal and very simple annotation parser. | |
*/ | |
class AnnotationParser | |
{ | |
static $ANNOTATION_NAME = 1; | |
static $ANNOTATION_VALUE = 2; | |
static private $reflector; | |
This file contains hidden or 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
<?php | |
/** | |
* Minimal and very simple annotation parser. | |
* | |
* For examples, look at the doc comments beneath. | |
* | |
* Licensed under the terms and conditions of the MIT license. | |
* | |
* @author Alexander Kluth <[email protected]> | |
*/ |
This file contains hidden or 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/perl | |
# | |
use strict; | |
use warnings; | |
use LWP::Simple; | |
use JSON; | |
my $json = get("https://api.github.com/users/deralex/repos"); | |
my $data = decode_json($json); |
This file contains hidden or 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
if $TERM == "xterm-256color" | |
set t_Co=256 | |
endif | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' |
This file contains hidden or 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
# Considering an JSON object like this one: | |
# | |
# { | |
# "store": { | |
# "foo": { | |
# "value":"bar" | |
# } | |
# }, | |
# "anotherstore": { | |
# "wat":{ |
This file contains hidden or 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
6 module.exports = | |
7 flush: (storename) -> | |
8 content = store.store() | |
9 | |
10 try | |
11 log.message 'Writing store' + storename '...' | |
12 fs.writeFileSync storename, content, 'utf8' | |
13 true | |
14 catch e | |
15 log.failure e |
This file contains hidden or 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
--- | |
service: | |
version: 1 | |
name: IRC | |
icon: icon.png | |
description: "This is an awesome IRC-Client!" | |
short: "IRC-Client" | |
license: BSD | |
license-url: google.com/search?q=BSD | |
author: Nuria-Project |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<title></title> | |
<style> | |
body { | |
background: white; | |
text-align: center; | |
padding: 20px; | |
font-family: Georgia, serif; |