Skip to content

Instantly share code, notes, and snippets.

View Nielson's full-sized avatar
🏠
Working from home

Malte Nielson Nielson

🏠
Working from home
  • Gamers Guild
  • Denmark
View GitHub Profile
@vxnick
vxnick / gist:380904
Created April 27, 2010 15:52
Array of country codes (ISO 3166-1 alpha-2) and corresponding names
<?php
$countries = array
(
'AF' => 'Afghanistan',
'AX' => 'Aland Islands',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
@JeffreyWay
JeffreyWay / app.js
Last active July 15, 2023 02:41
Swappable Heading example
class SwappableHeading {
constructor(element, headings = []) {
this.element = element;
this.headings = headings;
this.current = 1;
}
async swap() {
while (true) {
await this.wait(2000);
@bitbrain
bitbrain / DayNightCycle.gd
Last active June 19, 2024 10:30
A gd script implementing a day night cycle using maths only.
extends CanvasModulate
const NIGHT_COLOR = Color("#091d3a")
const DAY_COLOR = Color("#ffffff")
const EVENING_COLOR = Color("#ff3300")
const TIME_SCALE = 0.1
var time = 0