“Through me you pass into the city of woe: Through me you pass into eternal pain: Through me among the people lost for aye. Justice the founder of my fabric moved: To rear me was the task of power divine, Supremest wisdom, and primeval love. Before me things create were none, save things
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 app = { | |
debug: function(message, level) { | |
// Default level for logs | |
if (typeof level === 'undefined' || level === 'log') { | |
level = 'info'; | |
} | |
// If we have a console... | |
if (typeof console === 'object' && typeof console.debug === 'function') { | |
// ...and the requested log level exists |
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
#!/bin/sh | |
hash inotifywait 2>/dev/null || { echo >&2 "I require package inotify-tools but it's not installed. Try: apt-get install inotify-tools"; exit 1; } | |
while true; | |
echo "Waiting for changes in .less-files." | |
do N=`find src -name "*.less" `; | |
inotifywait -qe modify $N; | |
echo "Touching: src/Cos/Bundle/CosBundle/Resources/public/themes/oden/theme.less" |
I hereby claim:
- I am antila on github.
- I am antila (https://keybase.io/antila) on keybase.
- I have a public key whose fingerprint is 5E16 4F77 A1C9 92A9 3931 EEC2 EB8B 8761 935F 6073
To claim this, I am signing this object:
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
# node-webkit: | |
# https://github.com/rogerwang/node-webkit | |
# generator för grunt | |
# https://github.com/Dica-Developer/generator-node-webkit | |
# Installera Grunt, Bower, Yeoman | |
npm install -g yo grunt bower | |
# Installera node-webkit generatorn |
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
#include <string.h> | |
#include <stdio.h> | |
#include <math.h> | |
#include <inttypes.h> | |
int64_t divide_into_largest_factor(int64_t input) { | |
int64_t divisor = 2; | |
if (2 < input) { | |
while (divisor < (sqrt(input)+1)) { | |
if (input % divisor == 0) { |
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
# Nuke my old keys | |
rm /home/aantila/.ssh/authorized_keys | |
# Grab new one | |
gpg2 --recv-keys 0A361939 | |
gpgkey2ssh 700C8678 >> /home/aantila/.ssh/authorized_keys | |
# ... and add a comment | |
sed -i.bak s/COMMENT/"anders@antila.se-yubikey"/g /home/aantila/.ssh/authorized_keys |
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
/* | |
Blink | |
Turns on an LED on for one second, then off for one second, repeatedly. | |
Most Arduinos have an on-board LED you can control. On the Uno and | |
Leonardo, it is attached to digital pin 13. If you're unsure what | |
pin the on-board LED is connected to on your Arduino model, check | |
the documentation at http://www.arduino.cc | |
This example code is in the public domain. |
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
#include <Adafruit_NeoPixel.h> | |
// Which pin on the Arduino is connected to the NeoPixels? | |
#define PIN 6 | |
// How many NeoPixels are attached to the Arduino? | |
#define NUM_LEDS 60 | |
// How much the light should dim per loop | |
#define falloff 1 |
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
$('#hax').off('.hax').remove(); | |
var $videoSettings = $('<input id="hax" type="range" min="200" max="1000"/>'); | |
$videoSettings.appendTo($('#mysettings .content')); | |
var inputChange = function() { | |
var windowSize = $(this).val(); | |
$('.video').css('min-width', windowSize); | |
$('.video').css('min-height', windowSize * (3/4)); | |
$('#playerzone.largevideo object, #playerzone.largevideo .OT_root, .OT_widget-container').attr('style', 'width: ' + windowSize + 'px !important; height: ' + windowSize * (3/4) + 'px !important;'); | |
$('.playername').css('max-width', '100%'); |
OlderNewer