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
public function init(Manager $moduleManager) | |
{ | |
$events = StaticEventManager::getInstance(); | |
$events->attach('bootstrap', 'bootstrap', array($this, 'initializeView'), 100); | |
$events->attach('bootstrap', 'bootstrap', function($e) { | |
require_once __DIR__.'/../../vendor/php-activerecord/ActiveRecord.php'; | |
\ActiveRecord\Config::initialize(function($cfg) { | |
$cfg->set_model_directory(__DIR__.'/src/' . __NAMESPACE__ . '/Model'); | |
$cfg->set_connections(array( |
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
'Zend\View\PhpRenderer' => array( | |
'parameters' => array( | |
'resolver' => 'Zend\View\TemplatePathStack', | |
'options' => array( | |
'script_paths' => array( | |
'application' => __DIR__ . '/../view', | |
), | |
), | |
'broker' => 'Zend\View\HelperBroker', | |
), |
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
var http = require("http"); | |
var net = require("net"); | |
var httpAddress = "0.0.0.0"; | |
var httpPort = "8001"; | |
server = http.createServer(function (req, res) { | |
console.log("GOT REQUEST"); | |
var postBody = JSON.stringify({}); |
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
var http = require("http"); | |
var net = require("net"); | |
var installErrorHandling = function(agent) { | |
agent.createConnection = function(options) { | |
var socket = net.createConnection(options); | |
socket.on("error", function(error) { | |
console.log("GOT ERROR", error, "request options:", options); | |
}); | |
return socket; |
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 | |
convert logos/logo620x620.png -gravity center -background transparent -resize 320x480 -extent 320x480 logos/Default~iphone.png | |
convert logos/logo620x620.png -gravity center -background transparent -resize 640x960 -extent 640x960 logos/Default@2x~iphone.png | |
convert logos/logo620x620.png -gravity center -background transparent -resize 768x1024 -extent 768x1024 logos/Default-Portrait~ipad.png | |
convert logos/logo620x620.png -gravity center -background transparent -resize 1536x2048 -extent 1536x2048 logos/Default-Portrait@2x~ipad.png | |
convert logos/logo620x620.png -gravity center -background transparent -resize 1024x768 -extent 1024x768 logos/Default-Landscape~ipad.png | |
convert logos/logo620x620.png -gravity center -background transparent -resize 2048x1536 -extent 2048x1536 logos/Default-Landscape@2x~ipad.png | |
convert logos/logo620x620.png -gravity center -background transparent -resize 640x1136 -extent 640x1136 logos/Default-568h@2x~iphone.png | |
convert logos/logo620x620.png -gravity center -background trans |
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
cmake_minimum_required (VERSION 3.2) | |
include(FindPackageHandleStandardArgs) | |
include("cmake/HunterGate.cmake") | |
include(ExternalProject) | |
HunterGate( | |
URL "https://github.com/ruslo/hunter/archive/v0.12.45.tar.gz" | |
SHA1 "a1d363c7ffb324eb55a410715868ada32e595622" | |
) | |
project (arangodb-mesos-framework CXX) |
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
'use strict'; | |
// quick and dirty fritzing ic schematic generator | |
let numPins = 80; | |
let name = 'FT907L'; | |
let pinsPerSide = Math.ceil(numPins/2); | |
let pins = ''; | |
let heightPerPin = 2.5; | |
for (var i=1;i<=pinsPerSide;i++) { | |
pins += `<line class='pin' x1='0.123472' y1='${i * heightPerPin}' x2='5.20347' y2='${i * heightPerPin}' fill='none' stroke='#787878' stroke-width='0.246944' stroke-linecap='round' id='connector${i-1}pin' /> |
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
const http = require('http'); | |
let responseBody = ''; | |
let requestBody = '[["/"]]'; | |
let req = http.request({ | |
hostname: 'localhost', | |
port: 4001, | |
path: '/_api/agency/read', | |
method: 'post', |
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
LDFLAGS=-lm LD=/Users/mop/m68k-amigaos/bin/m68k-amigaos-ld RANLIB=/Users/mop/m68k-amigaos/bin/m68k-amigaos-ranlib CFLAGS=-mcrt=clib2 CXX=/Users/mop/m68k-amigaos/bin/m68k-amigaos-g++ CC=/Users/mop/m68k-amigaos/bin/m68k-amigaos-gcc ./configure --host=amiga --target=amiga |
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
#l 2 4 images/kraft.png | |
#l 2 8 img/msgothic_16x16pn.png | |
pi $x, si 239, rnd $x | |
pi $y, si 239, rnd $y | |
pi $off, si 180 | |
pi $a, si 40, rnd $a, add $off | |
pi $_, si 8, spt $_ // set sprite table to z=8 | |
x $x,y $y, zi 4, spa $a // draw 32bit color sprite to ($x, $y, 4(,5,6,7) (= rgba buffer)) |
OlderNewer