Skip to content

Instantly share code, notes, and snippets.

View MatthijsKamstra's full-sized avatar
🤖
Creative Coding

Matthijs Kamstra MatthijsKamstra

🤖
Creative Coding
View GitHub Profile
@lordlycastle
lordlycastle / apps_install.sh
Created February 10, 2021 19:49 — forked from brunofbrito/apps_install.sh
Install my macOS apps with homebrew, cask and mas-cli
#!/bin/sh
echo Install all AppStore Apps at first!
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Installing Homebrew...
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo Installing Brew favorites...
brew tap homebrew/cask-fonts
@brunofbrito
brunofbrito / apps_install.sh
Last active December 20, 2023 00:39
Install my macOS apps with homebrew, cask and mas-cli
#!/bin/zsh
echo Time to install all apps at once!
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Installing Homebrew...
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo Installing Oh My Zsh...
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@Matan
Matan / HaxeScript.hx
Last active February 5, 2022 12:27 — forked from clarkjones/HaxeScript.hx
haxex, a short shell script that can be used so you have Haxe shell scripting
#!/usr/bin/env haxex -lib mcli @
/**
Taken from mcli example https://github.com/waneck/mcli
Say hello.
Example inspired by ruby's "executable" lib example
**/
class HaxeScript extends mcli.CommandLine
{
/**
@christopher4lis
christopher4lis / util-elastic-collision.js
Last active April 23, 2024 15:40
A set of utility functions used to reproduce the effect of elastic collision within HTML5 canvas. Used in the Chris Courses tutorial video on collision detection: https://www.youtube.com/watch?v=789weryntzM
/**
* Rotates coordinate system for velocities
*
* Takes velocities and alters them as if the coordinate system they're on was rotated
*
* @param Object | velocity | The velocity of an individual particle
* @param Float | angle | The angle of collision between two objects in radians
* @return Object | The altered x and y velocities after the coordinate system has been rotated
*/
@ansanloms
ansanloms / markdown_css.md
Last active November 18, 2020 09:21
markdown css

markdown css

概要

pandocでmarkdownをhtmlに変換する際に使用するcssの選択。

前提

@dbellomo
dbellomo / pandoc.md
Last active January 6, 2023 23:24
recursos de Pandoc (Reveal.js themes, etc)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@cambiata
cambiata / AsyncTestController.hx
Created December 18, 2014 12:35
Example use of tink.core.Future in UFront controllers
import tink.core.Error;
import tink.core.Future;
import tink.core.Outcome;
import ufront.web.result.ContentResult;
class AsyncTestController extends ufront.web.Controller {
@:route('/async') public function async() return simulatedAsyncProcess();
function simulatedAsyncProcess(): Surprise<ContentResult, Error> {
@cambiata
cambiata / FutureTriggerExample.hx
Last active September 7, 2016 12:28
tink.core.Future.trigger() example
import neko.Lib;
import sys.FileSystem;
import sys.io.File;
import tink.core.Future;
import tink.core.Outcome;
class FutureTriggerExample
{
static function main()