My country is under a daylight saving time period and not all my commits are made during the morning/afternoon. Because I commited after 11:00 PM - which, given the local DST, was after 00:00 AM - my 100+ days commit streak got broken - which made me very unhappy.
This file contains 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 string2ascii(string, sep) { | |
return string.split('') | |
.map(e => e.charCodeAt(0)).join(sep ? sep : ''); | |
} | |
function string2hex(string, sep) { | |
return string.split('') | |
.map(e => e.charCodeAt(0).toString(16)).join(sep ? sep : ''); | |
} |
This file contains 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
void Main() | |
{ | |
var result = "http://localhost:3000/test.json" | |
.GetAsync() | |
.ReceiveCropFields() | |
.Dump(); | |
} | |
static class HttpResponseMessageExtensions | |
{ |
This file contains 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
import Control.Monad.State | |
import qualified Data.Map.Strict as M | |
------------------------------------------------------ | |
-- This is a thought process for why you might want to learn about | |
-- the state monad. | |
-- Let's say we want to implement a function to calculate the nth | |
-- fibonacci number. Here's the straightforward implementation. |
This file contains 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/bin/env julia | |
# Gist: https://gist.github.com/t-nissie/641df996b9035f85b230 | |
# Three ways of generating n-th Fibonacci number in Julia language | |
# Put perfutil.jl in the same directory as: | |
# wget https://raw.githubusercontent.com/JuliaLang/julia/master/test/perf/perfutil.jl | |
# Turn off garbage collection (GC), when you get occasional bad timings. See perfutil.patch below. | |
### | |
using Base.Test | |
include("perfutil.jl") |
This file contains 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
/* based on dbox.us */ | |
body { | |
background: linear-gradient(238deg, #fd8800, #fd008f, #9700fd, #003dfd, #05c7e6, #4bd58d); | |
background-size: 1200% 1200%; | |
-webkit-animation: rainbow 30s ease infinite; | |
animation: rainbow 30s ease infinite; | |
} | |
@-webkit-keyframes rainbow { | |
0% { background-position: 0% 50% } | |
50% { background-position: 100% 50% } |
This file contains 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
#EXTM3U | |
#EXTINF:-1,Digitally Imported - Ambient | |
http://pub1.diforfree.org:8000/di_ambient_hi | |
#EXTINF:-1,Digitally Imported - Big Room House | |
http://pub1.diforfree.org:8000/di_bigroomhouse_hi | |
#EXTINF:-1,Digitally Imported - Breaks | |
http://pub1.diforfree.org:8000/di_breaks_hi |
This file contains 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
/* | |
Copyright (C) 2021 Pascal de Vink (Tweakers.net) | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either | |
version 2.1 of the License, or (at your option) any later version. | |
This library is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains 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
;var _ = (function () { | |
function lo() { } | |
lo.prototype = { | |
//XMLHttpRequest wrapper | |
ajax: function() { | |
var a = arguments, | |
requestData, | |
opts = { method: 'GET', data: null, url: '', async: true, done: null, fail: null, always: null }; | |
This file contains 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 mune(){ | |
var a=Array.isArray(arguments[0]) ? arguments[0] : arguments; | |
for(var i=0,l=a.length,l=l>31?31:l;i<l;i++){this[a[i]] = 1 << i} | |
} |