- CREATIVE CODING WOO
- Randomness
- flocking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/fontforge | |
Open($1) | |
MergeFonts($2) | |
Generate($3) |
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 protected]”
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// in case something expects http(s)://, and not // | |
const generateUrl = string => new URL(string, window.location.href) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const getSlug = string => | |
string | |
.match(/(?:['\w])+/g) | |
.join("-") | |
.replace(/'/g, "") | |
.toLowerCase() |
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:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Command { | |
public: | |
virtual ~Command(); | |
virtual void Execute() = 0; | |
protected: | |
Command(); | |
}; | |
// game programming patterns |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## | |
# Win10 Initial Setup Script | |
# Author: Disassembler <[email protected]> | |
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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); |
NewerOlder