Skip to content

Instantly share code, notes, and snippets.

View smiler's full-sized avatar

Christian Axelsson smiler

  • Uppsala, Sweden
View GitHub Profile
function bleh_blehify_content( $content ) {
$sentences = array_filter( explode( ".", $content ), "strlen" );
return array_reduce( $sentences, 'bleh_make_bleh', "" );
}
function bleh_make_bleh( $result, $str ) {
$blehs = array( "bleh", "blah", "blergh", "bloh", "blurf", "blesk", "blaf" );
$bleh = $blehs[ rand( 0, count( $blehs ) - 1 ) ];
return $result . "$str, $bleh.";
@smiler
smiler / gist:7353931
Last active December 27, 2015 16:19
(let [dt (elapsed-time t)
move' #(move % dt)
balls' (map move' balls)
balls'' (map #(keep-in-bounds dt ctx %) balls')]
;; Do stuff with balls
)
lol.cpp:2:18: error: template instantiation depth exceeds maximum of 900 (use -ftemplate-depth= to increase the maximum) instantiating ‘Lol<T*> Lol<T>::operator->() [with T = int******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
(ns breakout.core
(:require [clojure.browser.repl :as repl]))
(repl/connect "http://localhost:9000/repl")
(. js/console (log "Hello world!"))
Subject: Uppsalaresa inställd... Åter på måndag..
Onsdag – Fredag hade jag en planerad arbeta-hemma period, men den utökas nu *Tack SJ* med idag, Tisdag.
Logg:
04.45 Uppstigning
05.35 Avresa mot stationen
05.57 Avresa med tåg från säter
06.03 Lok upphör att fungera, reboot hjälper ej
06.45 En grupp resenärer (däribland jag) gör en (regelvidrig) utbrytning från tåget och tar oss ut till Riksväg 70
1 Benriach 13 yrs Maderensis Fumosos Peated Madeira wood Finish
1 Bushmills 16 yrs Single Malt Triple Wood Bushmills
1 Bowmore 12 yrs Enigma Liter Bowmore 12 y.o.
1 The Glenlivet 15 yrs French Oak Reserve
1 Bowmore 15 yrs Darkest Bowmore
1 Ardbeg Uigeadail
2 Glendronach 15 yrs Revival
1 Talisker 10 yrs
1 Sheep Dip 1999 Amoroso Oloroso
1 Bruichladdich Octomore 6 1 Scottish Barley 6 CL
http://imgur.com/a/DNcvn
- The front and back PCB ain't aligned
- Bottom right screw hole and knob hole are aligned against eachother.
- Top right screw hole is about 2mm too far up.
- Speaker is 2-3mm too far to the left.
- Stop button hole is 1-2mm to far to the right and about same distance too far towards the top.
- The base mounting holes are ok relative eachother.
- Bottom left mounting hole is about 2mm too far to the right and top left mounting hole is too far to the left and too far towards the top.
butik@X-web01:/srv/X/local/bin$ ls -l gsi
-rwxr-xr-x 1 butik butik 4509210 Aug 6 21:44 gsi
butik@X-web01:/srv/X/local/bin$ file gsi
gsi: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID[sha1]=0xf5fa060722127410c35308a89f8c876fbf586ff2, not stripped
butik@X-web01:/srv/X/local/bin$ ldd gsi
not a dynamic executable
butik@X-web01:/srv/X/local/bin$ strace ./gsi
execve("./gsi", ["./gsi"], [/* 13 vars */]) = -1 ENOENT (No such file or directory)
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
static void lcd_font_char_xy(int xPos, int yPos, char character, FONT_INFO* fontInfo, uint16_t fgColor, uint16_t bgColor)
{
unsigned short i = 0;
unsigned short j = 0;
unsigned short height = fontInfo->heightPages * 8;
unsigned short width;
unsigned short tableOffset = character - fontInfo->startChar;//32;
FONT_CHAR_INFO fontCharInfo = fontInfo->charInfo[(tableOffset)];
uint16_t offset = fontCharInfo.offset;
uint16_t lineOffset;
My traceroute [v0.82]
prometheus.smiler.se (0.0.0.0) Fri Jun 21 22:21:12 2013
Keys: Help Display mode Restart statistics Order of fields quit
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. OpenWrt.lan 0.0% 35 0.2 0.2 0.2 0.4 0.0
2. ua-213-112-224-1.cust.bredbandsbolaget.se 2.9% 35 0.5 0.7 0.5 4.8 0.8
3. ti3142a210-xe9-2.ti.telenor.net 0.0% 35 2.7 4.8 2.6 4