Skip to content

Instantly share code, notes, and snippets.

Anselm Christophersen anselmdk

View GitHub Profile
Landish /
Last active Oct 28, 2019


  "compilerOptions": {
    "baseUrl": "./src",
    "target": "ES6",
    "jsx": "preserve",
    "allowSyntheticDefaultImports": true
  "exclude": ["build", "node_modules"]
sadikaya /
Last active May 28, 2020
git bash inside Webstorm terminal

Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.

for 64bit:

"C:\Program Files\Git\bin\sh.exe" --login -i

for 32bit:

"C:\Program Files (x86)\Git\bin\sh.exe" --login -i
OlegIlyenko / Event-stream based GraphQL
Last active Jun 22, 2020
Event-stream based GraphQL subscriptions for real-time updates
View Event-stream based GraphQL

In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.

Conceptual Model

At the moment GraphQL allows 2 types of queries:

  • query
  • mutation

Reference implementation also adds the third type: subscription. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.

curtismcmullan /
Last active Apr 6, 2020
Setup Selenium Server on Ubuntu 14.04
# Following the guide found at this page
echo "\r\nUpdating system ...\r\n"
sudo apt-get update
# Create folder to place selenium in

JSX Spread Attributes

If you know all the properties that you want to place on a component a head of time, it is easy to use JSX:

  var component = <Component foo={x} bar={y} />;

Mutating Props is Bad, mkay

markguinn / CreateViewForClass.php
Last active Jan 5, 2017
Create MySQL view for multi-table Silverstripe DataObject
View CreateViewForClass.php
* Creates a Flat table view for a given class
* @author Mark Guinn <>
* @date 06.13.2014
class CreateViewForClass extends BuildTask
protected $title = 'DEV: Flat View for Class';
protected $description = 'Use class=XXXX to create a flat view of all the tables that make up a given class';
shawnrice /
Created Apr 19, 2014
A template to write a quick daemon as a bash script
# This is a skeleton of a bash daemon. To use for yourself, just set the
# daemonName variable and then enter in the commands to run in the doCommands
# function. Modify the variables just below to fit your preference.
ryanwachtl / SilverStripe Foundation HtmlEditorConfig
Last active Dec 21, 2015
HtmlEditorConfig for SilverStripe Foundation Theme. Also sets up a minimal, single line toolbar.
View SilverStripe Foundation HtmlEditorConfig
"skin" => "default",
"style_formats" => array(
"title" => "Lead",
"selector" => "p",
"classes" => "lead"
"title" => "Subheader",
phptek /
Last active Oct 11, 2015 — forked from stojg/
Search and replace for SS 3.0 upgrade [beta]
# There are some threads on the SS forums that describe the techdocs for upgrading a 2.4 site to 3.x as being too technical. Mainly from content authors who
# also happen to be site maintainers - they are not coders.
# The aim of this script is to therefore to automate - in as much as this is possible in a user-configured, open-source software project - to help those new to
# SS3 upgrade from 2.x as smoothly as possible.
jphorn / firebuglite-ios.js
Created Dec 4, 2011
Firebug LITE for iOS
View firebuglite-ios.js
You can’t perform that action at this time.