Skip to content

Instantly share code, notes, and snippets.

Avatar
🐈

Jessica Claire Edwards jsscclr

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

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”
View generate-url.js
// in case something expects http(s)://, and not //
const generateUrl = string => new URL(string, window.location.href)
View generate-slug.js
export const getSlug = string =>
string
.match(/(?:['\w])+/g)
.join("-")
.replace(/'/g, "")
.toLowerCase()
View keybase.md

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:

View command.cpp
class Command {
public:
virtual ~Command();
virtual void Execute() = 0;
protected:
Command();
};
// game programming patterns
@jsscclr
jsscclr / reclaimWindows10.ps1
Created Apr 15, 2017 — 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)
View reclaimWindows10.ps1
##########
# 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 Jan 7, 2017 — 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.
View Hello.tsx
// 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 Dec 17, 2016 — forked from PaulKinlan/canvasrecord.js
Screen recorder in JS
View canvasrecord.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);