Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
/*Object Oriented Blackjack | |
A Game has: Players | |
Dealer | |
Deck | |
A Player / Dealer has: Score | |
Cards | |
A Score has: Game Logic |
<?php | |
// Check this request has a GitLab header | |
function checkHeader($gitlab_header) { | |
if (!isset($gitlab_header)) { | |
throw new Exception("Can't be accessed directly."); | |
} | |
} | |
try { checkHeader($_SERVER['HTTP_X_GITLAB_EVENT']); } |
<?php | |
/* | |
* | |
* Wrapper script for hitting Glip Webhooks | |
* | |
* @usage: | |
* Include this file and call like so: | |
* | |
* require_once("GlipPost.php"); |
<?php | |
/* | |
* Plugin: StreamlineFoundation | |
* | |
* Class: Schedule | |
* | |
* Description: Provides scheduling mechanics including creating a schedule, testing if a specific moment is part of the schedule, moving back | |
* and forth between scheduled moments in time and translating the created schedule back to a human readable form. | |
* | |
* Usage: ::fromCronString() creates a new Schedule class and requires a string in the cron ('* * * * *', $language) format. |
Visit my blog or connect with me on Twitter
git init
or
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |