Skip to content

Instantly share code, notes, and snippets.

View Olian04's full-sized avatar

Oliver Anteros Olian04

View GitHub Profile
@Olian04
Olian04 / PeekIter.py
Created November 23, 2016 15:01
null created by Olian04 - https://repl.it/E6UU/2
"""
[PeekIter]: Wrapper class for iterators, implements peeking.
"""
__VERSION = "0.1"
__AUTHOR = "Olian04"
class PeekIter:
"""PeekIter wrapper class, adds peek, done and next functionality to an iter.
[iterator]: The iterator to wrap.
@Olian04
Olian04 / DD1368
Last active July 11, 2018 19:17
..
Person = {
id:number, name:string, address:string
1, Petter, META
2, Jesper, F1
3, Johan, E1
20, 'Florian Pokorny', 'Borggården'
21, 'Viggo Kann', 'Nånstans på CSC'
22, 'Ricky Martin', 'Paris'
}
@Olian04
Olian04 / _app.scss
Last active May 22, 2017 15:19
Sass file used to store global constants used throughout the code base (MVK project for KTH CSC 2017).
// The main SASS file. Import this file to have access to global variables.
// ----- Global colors -------
// Handy colors
$white: #FFFFFF;
$black: #000000;
// ----- KTH specifics -----
$kth-color-blue: #2258A5; // #0064B0
$kth-color-light-blue: #2E7CC0;
import * as moment from 'moment'; // might warn due to missing types file
console.log( moment() );
import { bar } from './demo_internal';
export function foo() {}
[
{
"id": "readme.template",
"template": {
"uri": "readme.template.mustache"
},
"targetPath": "../README.template.md",
"force": false
}, {
"id": "global.fragments",
.as-console-wrapper { max-height: 100% !important; top: 0; }
@Olian04
Olian04 / GW2.cmd
Last active July 5, 2020 20:31 — forked from Halkcyon/GW2.cmd
Automatically update ArcDps and BuildTemplates from deltaconnected for Guild Wars 2
::[CmdletBinding(SupportsShouldProcess)]
::# Update these values for wherever you have GW2 installed.
::# The arguments only get passed if you do not have a Settings.json file
::Param(
:: $Gw2Root = 'M:\Guild Wars 2',
:: $Gw2Exe = 'Gw2-64.exe',
:: $Gw2Arguments = @(
:: '-mapLoadinfo'
:: '-bmp'
:: '-fps','144'
group:homework 1
assets = {
id:number, type:string, title:string , publication_date:number
100 , 'cd' , 'Best of Phill Colins', 1567696321
200 , 'book' , 'Pippi Långstrump' , 1567667305
300 , 'book' , 'Madicken' , 1567663305
}
stock = {
const r1 = #{
a: 1,
b: 2,
c: 3,
};
const r2 = #{
a: #{
b: #{
c: 123,