This file contains 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
class PriceRange extends PureComponent { | |
constructor (props) { | |
super(props) | |
this.state = { | |
range: null, | |
} | |
} | |
// Overwrites the state if page just loaded or other |
This file contains 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/php | |
# FILE: .git/hooks/commit-msg | |
<?php | |
$commitMessages = file($argv[1]); | |
if (preg_match('(^[0-9]+:\s*$)', $commitMessages[0])) { | |
echo "Empty commit message, aborting.\n"; | |
exit(1); | |
} |
This file contains 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 | |
# Allows us to read user input below, assigns stdin to keyboard | |
exec < /dev/tty | |
while true; do | |
read -p "[Pre-Push] Did you run the tests? (Y/n) " yn | |
if [ "$yn" = "" ]; then | |
yn='Y' | |
fi |
This file contains 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
Verifying that +tobiasschlitt is my blockchain ID. https://onename.com/tobiasschlitt |
This file contains 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/bash | |
# alias vim="vimmux" | |
export TERM="xterm-256color" | |
if tmux has-session -t vim | |
then | |
if [ "$#" != "1" ] | |
then |
This file contains 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
3n 2n+1 | |
n = 1: 3 3 | |
n = 2: 6 5 | |
n = 3: 9 7 | |
... |
This file contains 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/bash | |
STASH_RESULT="`git stash`"; | |
git pull --rebase | |
if `echo "$STASH_RESULT" | grep -q 'Saved working directory'` | |
then | |
git stash pop | |
fi |
This file contains 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 PackageChanges extends \ArrayObject | |
{ | |
/** | |
* @var string | |
*/ | |
public $packageName; | |
/** |
This file contains 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
<FilesMatch "\.html$"> | |
Allow from all | |
</FilesMatch> | |
RewriteEngine on | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule .* /index.php [L] |
This file contains 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 | |
abstract class SnakStorage | |
{ | |
public function canStore( Snak $snak ) | |
{ | |
throw new \RuntimeException("Not implemented, yet."); | |
} | |
public function storeSnak( $snak, $snakRole /* ... */ ) |
NewerOlder