Skip to content

Instantly share code, notes, and snippets.

chris parweb

Block or report user

Report or block parweb

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Dockerfile
FROM ubuntu:18.04
LABEL name "rqlited"
COPY ./sysctl.conf /etc/sysctl.conf
COPY ./rqlited /tmp/
View types.graphql
type Location {
id: ID! @unique
lat: Float!
lng: Float!
street: String
postalCode: String
city: City
type City {
parweb / autoChromium.desktop
Last active Mar 14, 2017
autorun chrome on pi
View autoChromium.desktop
[Desktop Entry]
Exec=/usr/bin/chromium-browser --noerrdialogs --disable-session-crashed-bubble --disable-translate --disable-translate-new-ux --disable-infobars --kiosk url_entrypoint
Comment=Start Chromium when GNOME starts
View yolo.php
echo _DB_SERVER_.' - '._DB_NAME_.' - '._DB_USER_.' - '._DB_PASSWD_.' - '._DB_PREFIX_;
parweb / .block
Last active Jan 28, 2017 — forked from mbostock/.block
Chord Diagram
View .block
license: gpl-3.0
height: 961
border: no
parweb / composer.json
Last active Dec 7, 2016
defer any code in PHP
View composer.json
"require": {
"opis/closure": "^2.1.0"
View test-railway.js
const addOne = value => {
return value + 1;
const failIfOdd = value => {
return value + 1;
function railway ( chain ) {
return new Promise((resolve) => {
parweb / input.php
Last active Nov 22, 2016
Do you know a better way ?
View input.php
$input = array(
'data' => array(
'vehicles' => array(
0 => array(
'id' => '782',
'vin' => 'VF7SA9HD8DW660669',
'equipments' => array(
0 => array(
parweb / variadic-generics.php
Created Oct 13, 2016 — forked from ramsey/variadic-generics.php
You may type-hint on variadic functions in PHP to enforce type on elements in the array
View variadic-generics.php
class Foo {}
$f1 = new Foo();
$f2 = new Foo();
$bar = function (Foo ...$foo) {
foreach ($foo as $f) {
echo get_class($f) . "\n";
parweb / DataLoader.php
Last active Jul 17, 2016
Facebook/DataLoader for the PHP communauty on top of Icicle
View DataLoader.php
namespace App\hissezhaut\DataLoader;
use App\hissezhaut\DataLoader\Types\Map;
use App\hissezhaut\DataLoader\Types\Options;
use App\hissezhaut\DataLoader\Types\Queue;
use Exception;
use Icicle\Awaitable as UPromise;
use Icicle\Awaitable\Promise;
You can’t perform that action at this time.