Skip to content

Instantly share code, notes, and snippets.

View eyecatchup's full-sized avatar

Stephan Schmitz eyecatchup

View GitHub Profile
@eyecatchup
eyecatchup / gist:acfdc9e974e39679899a1891b0539228
Created February 8, 2017 22:59 — forked from stef-levesque/gist:11233090
Batch file to compute KEY for movdump.exe
@echo off
REM The key is generated using your machine's current time.
REM The formula is 13333 + (current hour * 7113) + (current minute * 77).
REM Calc that out by hand and use it with the -key parameter then
REM you can use movdump by itself without the GUI at all.
set HH=%TIME:~0,2%
set MM=%TIME:~3,2%
set /a KEY=13333+%HH%*7113+%MM%*77
@eyecatchup
eyecatchup / accordion.html
Last active February 7, 2018 14:46 — forked from umidjons/accordion.html
AngularJS: Accordion with custom directives (restrict, replace, transclude, template, controller, angular.forEach(), scope, link)
<!doctype html>
<html lang="en-US" data-ng-app="Accordion">
<head>
<meta charset="UTF-8">
<title>AngularJS: Accordion Example with Custom directives</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.js"></script>
<style type="text/css">
.expander{ border: 1px solid black; width: 250px; }
.expander>.title{ background: black; color: white; padding: .1em .3em; }
@eyecatchup
eyecatchup / certificate.sh
Created March 12, 2018 11:35 — forked from WebReflection/certificate.sh
A basic Self Signed SSL Certificate utility
#!/usr/bin/env bash
# A basic Self Signed SSL Certificate utility
# by Andrea Giammarchi @WebReflection
# https://www.webreflection.co.uk/blog/2015/08/08/bringing-ssl-to-your-private-network
# # to make it executable and use it
# $ chmod +x certificate
# $ ./certificate # to read the how-to
@eyecatchup
eyecatchup / package.json
Created April 19, 2018 14:45 — forked from surma/package.json
Boilerplate for quick one-off TypeScript projects. Just run `npm start`
{
"name": "tsquickstart",
"version": "1.0.0",
"description": "Boilerplate for quick one-off TypeScript projects. Just run `npm start`",
"scripts": {
"init": "test -f tsconfig.json || (tsc --init -t ESNext -m ESNext && npm install)",
"start": "npm run init && concurrently \"npm run watch\" \"npm run serve\"",
"serve": "http-server",
"watch": "tsc -p . --watch",
"build": "tsc -p ."
@eyecatchup
eyecatchup / README.md
Created May 21, 2018 12:23 — forked from surma/README.md
webpack-emscripten-wasm

Minimal example making webpack and wasm/Emscripten work together.

Build instructions:

  • Clone this gist
  • npm install
  • npm start
  • Open http://localhost:8080
  • Look at console
@eyecatchup
eyecatchup / crypto-sha.js
Created March 13, 2019 19:53 — forked from chrisveness/crypto-sha.js
Uses the SubtleCrypto interface of the Web Cryptography API to hash a message using SHA-256.
/**
* Returns SHA-256 hash from supplied message.
*
* @param {String} message.
* @returns {String} hash as hex string.
*
* @example
* sha256('abc').then(hash => console.log(hash));
* const hash = await sha256('abc');
*/