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
| 127.0.0.1 plus.google.com | |
| 127.0.0.1 www.9gag.com 9gag.com | |
| 127.0.0.1 www.amazon.de amazon.de | |
| 127.0.0.1 www.bitcoinity.org bitcoinity.org | |
| 127.0.0.1 www.der-postillon.com der-postillon.com | |
| 127.0.0.1 www.engadget.com engadget.com | |
| 127.0.0.1 www.facebook.com facebook.com | |
| 127.0.0.1 www.faz.net faz.net | |
| 127.0.0.1 blog.fefe.de | |
| 127.0.0.1 www.geizhals.at geizhals.at |
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/env bash | |
| HOSTNAME="vagrant" | |
| HOSTSFILE="./hosts" | |
| CONFIG=$(vagrant ssh-config) | |
| HOST=$(echo "$CONFIG" | egrep -o "HostName .+" | cut -d" " -f2-) | |
| PORT=$(echo "$CONFIG" | egrep -o "Port .+" | cut -d" " -f2-) | |
| USER=$(echo "$CONFIG" | egrep -o "User .+" | cut -d" " -f2-) | |
| KEY=$(echo "$CONFIG" | egrep -o "IdentityFile .+" | cut -d" " -f2-) |
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
| from redis import from_url as redis_from_url | |
| def create_api(app): | |
| access_key_id = app.config["AMAZON_ACCESS_KEY"] | |
| secret_access_key = app.config["AMAZON_SECRET_KEY"] | |
| associate_tag = app.config["AMAZON_ASSOCIATE_TAG"] | |
| locale = app.config["AMAZON_LOCALE"] | |
| redis = redis_from_url(app.config["AMAZON_REDIS_URL"]) |
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/env zsh | |
| sed -i '' -e 's/^antigen bundle/#antigen bundle/' ~/.zshrc | |
| tests=$(grep "#antigen bundle" ~/.zshrc | wc -l) | |
| last_sum=0 | |
| for it in $(seq 1 $tests); do | |
| sum=0 | |
| name=$(grep '#antigen bundle' ~/.zshrc | head -n 1 | cut -d' ' -f3) | |
| sed -i '' -e '1,/#antigen bundle/s/#//' ~/.zshrc |
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/env bash | |
| url_svn() { | |
| local svn_branch_url=$(git svn info | grep URL: | cut -d' ' -f2) | |
| local svn_branch_url=${svn_branch_url/\/trunk/\/branches} | |
| local svn_branch_url=${svn_branch_url/\/trunk\//\/branches} | |
| local svn_branch_url=${svn_branch_url/\/branches\/*/\/branches} | |
| echo $svn_branch_url | |
| } |
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 | |
| class A | |
| { | |
| public function __construct() | |
| { | |
| $this->lambda = function() { | |
| echo "Hello World!"; | |
| }; | |
| } |
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
| use std::fmt; | |
| use std::num; | |
| struct Point3 { | |
| x: f64, | |
| y: f64, | |
| z: f64, | |
| } | |
| impl Point3 { | |
| fn new(x: f64, y: f64, z: f64) -> Point3 { |
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
| 'use strict'; | |
| var React = require('react/addons'); | |
| var PureRenderMixin = React.addons.PureRenderMixin; | |
| var MAX_LOADING_TASKS = 3; | |
| var loadingQueue = []; | |
| var loadingQueueDirty = false; | |
| var loadingTasks = 0; |
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
| buildscript { | |
| repositories { | |
| maven { | |
| url('http://repository.openbakery.org/') | |
| } | |
| mavenCentral() | |
| } | |
| dependencies { | |
| classpath "org.openbakery:xcode-plugin:0.11.+" |
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/python | |
| # setup: pip install requests beautifulsoup4 | |
| from decimal import Decimal | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import sys | |
| import getpass |