Skip to content

Instantly share code, notes, and snippets.

View jsscclr's full-sized avatar
🐈

Jessica Claire Edwards jsscclr

🐈
  • Sydney, Australia
View GitHub Profile
#!/usr/local/bin/fontforge
Open($1)
MergeFonts($2)
Generate($3)
@jsscclr
jsscclr / setup.org
Created February 19, 2018 05:49
New Windows machine set up

Following needs to be root: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Ubuntu stuff

  • ln -s “/mnt/c/Users/EdwardsJ/Documents/src” /home/jessica/src
  • share src directories

ssh

  • ssh-keygen -C “email@sample.com”
// in case something expects http(s)://, and not //
const generateUrl = string => new URL(string, window.location.href)
export const getSlug = string =>
string
.match(/(?:['\w])+/g)
.join("-")
.replace(/'/g, "")
.toLowerCase()

Keybase proof

I hereby claim:

  • I am jsscclr on github.
  • I am jsscclr (https://keybase.io/jsscclr) on keybase.
  • I have a public key ASDQJBO_9U3sTQsHllbUMyjgj4FsNyYN0feKJnL-n7gxqQo

To claim this, I am signing this object:

class Command {
public:
virtual ~Command();
virtual void Execute() = 0;
protected:
Command();
};
// game programming patterns
@jsscclr
jsscclr / reclaimWindows10.ps1
Created April 15, 2017 01:18 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1
@jsscclr
jsscclr / Hello.tsx
Created January 7, 2017 05:27 — forked from jc4p/Hello.tsx
TypeScript 2.1.4 + Webpack 2.0 beta + Preact. Uses babel and ts-loader to convert to ES5/ES6/whatever-you-want bundle.
// src/components/Hello.tsx
import { h, Component, render } from "preact";
export interface HelloProps { compiler: string; framework: string; }
export default class Hello extends Component<HelloProps, undefined> {
constructor(props: any) {
super(props);
// #TODO: fetch() from the API, or set up a ServiceWorker to do so.
@jsscclr
jsscclr / canvasrecord.js
Created December 17, 2016 06:18 — forked from PaulKinlan/canvasrecord.js
Screen recorder in JS
(function() {
let canvas = document.querySelector('canvas');
// Optional frames per second argument.
let stream = canvas.captureStream(25);
var options = {mimeType: 'video/webm; codecs=vp9'};
let recorder = new MediaRecorder(stream, options);
let blobs = [];
function download(blob) {
var url = window.URL.createObjectURL(blob);