Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| ;; Linked list implementation | |
| ;; I compile it like this on Mac OS X: | |
| ; | |
| ; llvm-as linked-list.ll | |
| ; llc linked-list.bc | |
| ; as linked-list.s -o linked-list.o | |
| ; ld /usr/lib/crt1.o linked-list.o -o linked-list -lSystem -macosx_version_min 10.6 | |
| ;; Type aliases | |
| %free_func = type void (i8*)* |
| window.onload = function() { | |
| var v0 = new Vertex("0"); | |
| var v1 = new Vertex("1"); | |
| var v2 = new Vertex("2"); | |
| var v3 = new Vertex("3"); | |
| var v4 = new Vertex("4"); | |
| var v5 = new Vertex("5"); | |
| var v6 = new Vertex("6"); | |
| var v7 = new Vertex("7"); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| ; The stack pointer is going to be an index into the stack, and the | |
| ; stack is an array of words. The alternative would be to have the | |
| ; stack pointer me a pointer to memory, but this is perhaps a bit | |
| ; nicer, as where the stack actually lives is totally irrelevant. | |
| @stack = global [1000 x i64] undef | |
| @sp = global i64 undef; | |
| ; Now we have the basic stack operations: push, pop, and peek. As can | |
| ; be seen from the definitions, LLVM is typed, which is really nice as |
My friend give me an android phone (Samsung Galaxy S4 I9505XXUHPK2) because he didn't want to use it any more. It was a perfectly working modern device with only one problem: it's screen was broken. It usually happens to big touch screen phone, that their screen get crashes somehow, but their other functionalities keep working fine. So i was happy, that i got a fully functionalling phone, until he describe that broken screen means it's totally broken: no touch detection and no display! But unless this small drawback, it seem to be all right: it automatically connented to a known wifi and it's alarm clock also turned on sometimes. But yet the only response from it was a status led in the top-left corner (witch helped to detect if it's currently booting); the backlight of the menu and the back button (witch was the only way to find out, if i just turned on or off the screen); and the vibration (witch was also indicated a boot start (, or a new mess
| #!/bin/bash | |
| gpspipe -w | jq -c -M '. | select( (.class == "SKY" and has("satellites") == true) or .class == "TPV")' | while IFS= read obj | |
| do | |
| echo $obj | |
| done |