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
| import random | |
| import copy | |
| ALPHABET = [ | |
| "A","B","C","D","E","F","G","H","I","J","K","L","M","N", | |
| "O","P","Q","R","S","T","U","V","W","X","Y","Z", " "] | |
| class Scrambler(object): | |
| """A single scrambling unit used in the machine.""" | |
| def __init__(self, seed): | |
| super(Scrambler, self).__init__() |
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
| <script type="text/javascript" src="/js/jquery.complexify.js"></script> | |
| <script type="text/javascript"> | |
| $("#password").complexify({}, callback(valid, complexity){ | |
| alert("Password complexity: " + complexity); | |
| }); | |
| </script> |
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
| #!/bin/sh | |
| # bin/detect <build-dir> | |
| # This buildpack is valid for use in project with a Build directory | |
| if [ -d $1/Build ]; then | |
| echo "Hammer Buildpack" | |
| exit 0 | |
| else | |
| exit 1 | |
| fi |
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 | |
| # bin/compile <build-dir> <cache-dir> | |
| set -e | |
| BUILD_DIR=$1 | |
| CACHE_DIR=$2 | |
| BUILDPACK_DIR=`cd $(dirname $0); cd ..; pwd` | |
| SUPPORT_DIR="$BUILDPACK_DIR/support" |
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
| worker_processes 1; | |
| daemon off; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include mime.types; | |
| default_type application/octet-stream; |
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
| #!/bin/sh | |
| # bin/release <build-dir> | |
| cat <<EOF | |
| --- | |
| config_vars: | |
| PATH: ${HOME}nginx/sbin:/usr/local/bin:/usr/bin:/bin | |
| default_process_types: | |
| web: ./boot.sh | |
| EOF |
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
| $ heroku create --stack cedar --buildpack \ | |
| https://github.com/danpalmer/heroku-buildpack-hammer.git site-name | |
| $ git push heroku master | |
| ... | |
| -----> Downloading Nginx Sources | |
| ... | |
| -----> Extracting Nginx Sources | |
| -----> Configuring | |
| ... |
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
| #import "TestHelper.h" | |
| static int | |
| beforeAllRan | |
| , beforeEachRan | |
| , example1RanCorrectly | |
| , example2RanCorrectly | |
| , afterEachRan | |
| , afterAllRan | |
| ; |
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
| <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub"> |
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
| <OpenSearchDescription | |
| xmlns="http://a9.com/-/spec/opensearch/1.1/" | |
| xmlns:moz="http://www.mozilla.org/2006/browser/search/"> | |
| <ShortName>GitHub</ShortName> | |
| <Description>Search GitHub</Description> | |
| <InputEncoding>UTF-8</InputEncoding> | |
| <Image width="16" height="16" type="image/x-icon"> | |
| https://github.com/favicon.ico | |
| 21 | |
| </Image> |