Skip to content

Instantly share code, notes, and snippets.

View wjvander's full-sized avatar

Jacques van der Merwe wjvander

View GitHub Profile
@wjvander
wjvander / TSQL-to-POCO
Created February 6, 2019 10:16 — forked from joey-qc/TSQL-to-POCO
A simple TSQL script to quickly generate c# POCO classes from SQL Server tables and views. You may tweak the output as needed. Not all datatypes are represented but this should save a bunch of boilerplate coding. USAGE: Run this query against the database of your choice. The script will loop through tables, views and their respective columns. Re…
declare @tableName varchar(200)
declare @columnName varchar(200)
declare @nullable varchar(50)
declare @datatype varchar(50)
declare @maxlen int
declare @sType varchar(50)
declare @sProperty varchar(200)
DECLARE table_cursor CURSOR FOR
@wjvander
wjvander / gist-reveal.it-slides.html
Last active October 9, 2018 13:45 — forked from ryanj/gist-reveal.it-slides.html
Gist-powered Revealjs slideshow presentations http://gist-reveal.it
<img src="/images/brainum_logo.png" style="background:none; border:none; box-shadow:none; position:absolute;top:0px;left:-200px" width="200px"/>
<section>
<section data-background-video="https://1drv.ms/v/s!At63FI3udbqWh90s5qsL5JaQ-ctjTg" data-background-video-loop="true" data-background-opacity="0.2">
<span class="fragment fade-in"><h2>Introduction</h2></span>
<span class="fragment fade-in">Jacques van der Merwe</span>
<span class="fragment fade-in"><img src="/images/brainum_logo.png" style="background:none; border:none; box-shadow:none;"/></span>
</section>
<section data-background-video="/videos/background_graph.mp4" data-background-video-loop="true" data-background-opacity="0.2">
<h2>Software Developer</h2>
<span class="fragment fade-in"><img src="/images/whatido.png" style="background:none; border:none; box-shadow:none;"/></span>
@wjvander
wjvander / javascriptCheatSheet.md
Last active April 4, 2018 10:37
Javascript Cheat Sheet

Javascript Cheat Sheet

Snippets

Promise Delay

Waits a certain amount of time, then returns with a promise

Code

let waitAWhile = (timeToWait) => new Promise(resolve => setTimeout(resolve, timeToWait));
@wjvander
wjvander / JavaScript.xml
Created February 9, 2018 12:28
Webstorm Live Templates
<templateSet group="JavaScript">
<template name="forof" value="for (let $VAR$ of $ARRAY$) {&#10; $END$&#10;}" description="Iterate (for..of) - ES6" toReformat="true" toShortenFQNames="true">
<variable name="ARRAY" expression="jsArrayVariable()" defaultValue="" alwaysStopAt="true" />
<variable name="VAR" expression="jsSuggestVariableName()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JS_STATEMENT" value="true" />
</context>
</template>
<template name="for" value="for (let $INDEX$ = 0; $INDEX$ &lt; $ARRAY$.length; $INDEX$++) {&#10; let $VAR$ = $ARRAY$[$INDEX$];&#10; $END$&#10;}" description="Iterate elements of array" toReformat="true" toShortenFQNames="true">
<variable name="INDEX" expression="jsSuggestIndexName()" defaultValue="&quot;i&quot;" alwaysStopAt="true" />
@wjvander
wjvander / emojis.json
Created December 18, 2017 06:51 — forked from oliveratgithub/emojis.json
Emoji-list with emojis, names, shortcodes, unicode and html entities [massive list]
{
"emojis": [
{"emoji": "👩‍👩‍👧‍👧", "name": "family_mothers_two_girls", "shortname": "", "unicode": "", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👧‍👦", "name": "family_mothers_children", "shortname": "", "unicode": "", "html": "&#128105;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "category": "p", "order": ""},
{"emoji": "👩‍👩‍👦‍👦", "name": "family_mothers_two_boys", "shortname": "", "unicode": "", "html": "&#128105;&zwj;&#128105;&zwj;&#128102;&zwj;&#128102;", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👧", "name": "family_two_girls", "shortname": "", "unicode": "", "html": "&#128104;&zwj;&#128105;&zwj;&#128103;&zwj;&#128103;", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👧‍👦", "name": "family_children", "shortname": "", "unicode": "", "html": "&#128104;&zwj;&#128105;&zwj;&#128103;&zwj;&#128102;", "category": "p", "order": ""},
{"emoji": "👨‍👩‍👦‍👦", "name": "family_two_biys", "shortname": "", "unicode": "", "html": "&#128104;&zw
@wjvander
wjvander / git tutorials.md
Created July 21, 2017 05:53 — forked from jaseemabid/git tutorials.md
Awesome git tutorials I am finding here and there