Skip to content

Instantly share code, notes, and snippets.

View jrasanen's full-sized avatar

Jussi Räsänen jrasanen

  • Internet
View GitHub Profile
jrasanen / source-map-unpacker.js
Created January 18, 2024 20:25 — forked from zxbodya/source-map-unpacker.js
script to extract sources, from sourcesContent field in sourcemap
View source-map-unpacker.js
'use strict';
var fs = require('fs');
var maps = [
jrasanen /
Created September 30, 2023 14:07 — forked from TheSpydog/
How to build your FNA game for WebAssembly

How to build your FNA game for WebAssembly

WARNING: This process is EXTREMELY experimental and not officially supported yet!

Thanks to the ongoing work on .NET WebAssembly support, it is now possible to build FNA games for the web!

If you decide to give this a try, be sure to tell us about it in the FNA Discord! I'm happy to help if you run into problems or have any further questions that are not answered here.

The Basics

jrasanen / main.lua
Created July 17, 2020 16:39 — forked from randrews/main.lua
Example code for nice-feeling player movement in Love
View main.lua
require 'point'
function love.load()
love.physics.setMeter(32), 120, 64)
world = love.physics.newWorld(0, 0)
crates = { makeCrate(world, 5, 5),
makeCrate(world, 5, 6) }
jrasanen / layout.kbd.json
Created November 20, 2018 17:04 — forked from mmynsted/layout.kbd.json
Untitled Keyboard Layout
View layout.kbd.json
jrasanen /
Created April 24, 2017 07:10 — forked from JeffBelback/
Destroy all Docker Containers and Images
# Stop all containers
docker stop $(docker ps -a -q)
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
jrasanen / promise-all.clj
Created April 21, 2017 20:26 — forked from abarnash/promise-all.clj
Clojure implementation of all(promises).then(...) pattern from JavaScript
View promise-all.clj
(defn getPromiseFn
(fn [num] (Thread/sleep 10000)
(deliver aPromise (str num " done"))))
(def proms [(promise) (promise) (promise)])
(def promFns (map getPromiseFn proms))
(future (map deref proms))
(future (map promFn (range 0 (count proms))))
jrasanen / .vimrc
Created January 27, 2017 10:27 — forked from simonista/.vimrc
A basic .vimrc file that will serve as a good template on which to build.
View .vimrc
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
jrasanen /
Last active August 28, 2015 09:46 — forked from aydiv/
Paypal Adaptive Payments - Python sample for parallel payment
import urllib
import urlparse
import collections
import httplib
def TestPayment():
#Set our headers
headers = {
jrasanen / 0_reuse_code.js
Created July 16, 2014 15:07
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console