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
package com.example; | |
import java.io.File; | |
import java.lang.module.ModuleDescriptor; | |
import java.lang.module.ModuleFinder; | |
import java.lang.module.ModuleReference; | |
import java.net.URI; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.ArrayDeque; |
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 | |
function try_json_encode($data) | |
{ | |
json_encode($data); | |
return (json_last_error() == JSON_ERROR_NONE); | |
} | |
function json_encode_type_check($data) | |
{ |
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
local ecs = require "ecs" | |
local collision = require "collision" | |
local components = require "components" | |
local utils = require "utils" | |
local clamp = lume.clamp | |
--- Updates entity physics. | |
local MovementSystem = ecs.createSystem("Movement", "pos", "motion") |
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 | |
require 'vendor/autoload.php'; | |
use GuzzleHttp\Client; | |
use GuzzleHttp\HandlerStack; | |
use GuzzleHttp\Psr7\Response; | |
use React\EventLoop\Factory; | |
use WyriHaximus\React\GuzzlePsr7\HttpClientAdapter; | |
$loop = Factory::create(); |
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 | |
// Generic middleware that does not have to create a response. | |
$ringStyle = function(RequestInterface $request, callable $next) { | |
$request = $request->withHeader('Foo', 'Bar'); | |
$response = $next($request); | |
$response = $response->withHeader('Baz', 'Bam'); | |
return $response; | |
}; |
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 | |
require 'vendor/autoload.php'; | |
use GuzzleHttp\Stream\BufferStream; | |
use GuzzleHttp\Stream\AsyncReadStream; | |
use GuzzleHttp\Ring\Future; | |
$loop = React\EventLoop\Factory::create(); | |
$dnsResolverFactory = new React\Dns\Resolver\Factory(); | |
$dnsResolver = $dnsResolverFactory->createCached('8.8.8.8', $loop); |
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
diff --git a/README.rst b/README.rst | |
index d7f7d17..cb1961d 100644 | |
--- a/README.rst | |
+++ b/README.rst | |
@@ -200,6 +200,9 @@ the default theme: | |
'js/bootstrap.min.js': 'js/bootstrap.min.js' | |
'js/jquery-1.11.1.min.js': 'js/jquery-1.11.1.min.js' | |
+ static_templates: | |
+ 'api_tree': 'layout/api_tree.twig' |
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
$ wget https://github.com/phpDocumentor/phpDocumentor2/releases/download/v2.7.0/phpDocumentor.phar | |
--2014-08-22 17:23:24-- https://github.com/phpDocumentor/phpDocumentor2/releases/download/v2.7.0/phpDocumentor.phar | |
Resolving github.com... 192.30.252.131 | |
Connecting to github.com|192.30.252.131|:443... connected. | |
HTTP request sent, awaiting response... 302 Found | |
Location: https://s3.amazonaws.com/github-cloud/releases/761653/f8ace192-291d-11e4-93cc-3a8d946f2e49.phar?response-content-disposition=attachment%3B%20filename%3DphpDocumentor.phar&AWSAccessKeyId=AKIAISTNZFOVBIJMK3TQ&Expires=1408753470&Signature=heQkektTHiYFmz9AVb8Z2%2FmytQA%3D [following] | |
--2014-08-22 17:23:30-- https://s3.amazonaws.com/github-cloud/releases/761653/f8ace192-291d-11e4-93cc-3a8d946f2e49.phar?response-content-disposition=attachment%3B%20filename%3DphpDocumentor.phar&AWSAccessKeyId=AKIAISTNZFOVBIJMK3TQ&Expires=1408753470&Signature=heQkektTHiYFmz9AVb8Z2%2FmytQA%3D | |
Resolving s3.amazonaws.com... 10.186.10.1 | |
Connecting to s3.amazonaws.com|10 |
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/env bash | |
set -e | |
[ -z "$CHAG_DIR" ] && CHAG_DIR="/usr/local/bin" | |
[ -z "$CHAG_VERSION" ] && CHAG_VERSION="master" | |
CHAG_SOURCE="https://raw.githubusercontent.com/mtdowling/chag/$CHAG_VERSION/chag" | |
echo "=> Downloading chag to '$CHAG_DIR'" |
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
### Keybase proof | |
I hereby claim: | |
* I am mtdowling on github. | |
* I am mtdowling (https://keybase.io/mtdowling) on keybase. | |
* I have a public key whose fingerprint is C660 D8CE AE59 6DDF CE43 8F4C B48A B84B 28DB 4EF7 | |
To claim this, I am signing this object: |
NewerOlder