Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Hello world!

Wouter wouterds

:octocat:
Hello world!
View GitHub Profile
@wouterds
wouterds / raspbian-netinstall-basic-setup.sh
Last active Aug 29, 2015
raspbian-netinstall-basic-setup.sh
View raspbian-netinstall-basic-setup.sh
# Configure timezone
dpkg-reconfigure tzdata
# Configure locales
dpkg-reconfigure locales
# Get rid of the annoying locale warnings when installing stuff
echo "" >> ~/.bashrc
echo "export LANGUAGE=\"en_US.UTF-8\"" >> ~/.bashrc
echo "export LC_ALL=\"en_US.UTF-8\"" >> ~/.bashrc
View gist:4175084
function sleep(ms:int):void {
var init:int = getTimer();
while(true) {
if(getTimer() - init >= ms) {
break;
}
}
}
@wouterds
wouterds / SlidesContainer.as
Created Nov 30, 2012
Move anchor point to center
View SlidesContainer.as
slide = new Slide(appModel.currentSlide);
slide.x = slide.pivotX = slide.width * .5;
slide.y = slide.pivotY = slide.height * .5;
@wouterds
wouterds / PhotoSelector.as
Created Dec 8, 2012
[PhotoBooth vb] Buttons aanmaken
View PhotoSelector.as
previousButton = new PreviousButton();
addChild(previousButton);
@wouterds
wouterds / IconButton.as
Created Dec 8, 2012
[PhotoBooth vb] IconButton, de button parent die van SPrite extend
View IconButton.as
/**
* Created with IntelliJ IDEA.
* User: wouter
* Date: 09/10/12
* Time: 19:11
* To change this template use File | Settings | File Templates.
*/
package be.devine.cp3.photobooth.view {
import flash.display.DisplayObject;
import flash.display.Sprite;
@wouterds
wouterds / Library.as
Created Dec 8, 2012
[PhotoBooth vb] Embedded images
View Library.as
/**
* Created with IntelliJ IDEA.
* User: wouter
* Date: 09/10/12
* Time: 18:52
* To change this template use File | Settings | File Templates.
*/
package be.devine.cp3.photobooth {
public class Library {
@wouterds
wouterds / PreviousButton.as
Created Dec 8, 2012
[PhotoBooth vb] PreviousButton
View PreviousButton.as
/**
* Created with IntelliJ IDEA.
* User: wouter
* Date: 09/10/12
* Time: 19:09
* To change this template use File | Settings | File Templates.
*/
package be.devine.cp3.photobooth.view {
import be.devine.cp3.photobooth.Library;
@wouterds
wouterds / AppModel.as
Created Dec 9, 2012
Vb navigation via AppModel
View AppModel.as
/**
* Created with IntelliJ IDEA.
* User: WouterDS
* Date: 19/11/12
* Time: 23:43
* To change this template use File | Settings | File Templates.
*/
package be.wouterds.cubetester.model {
import flash.events.Event;
import flash.events.EventDispatcher;
@wouterds
wouterds / mdb2sql.sh
Last active Oct 27, 2015 — forked from turicas/mdb2sql.sh
Convert a MDB (Access) file to SQL
View mdb2sql.sh
#!/bin/bash
# Convert a MDB file (Access) to SQL
# Needs mdbtools[http://mdbtools.sourceforge.net/]
# run 'aptitude install mdbtools' on Debian/Ubuntu
# Created by Álvaro Justen <https://github.com/turicas>
# Modified by Gabriel Florit to run on Mac OS X
# License: GPLv2
mdb=$1
sql=$2
View DownloadCommand.php
<?php
namespace Demo;
use League\Flysystem\Filesystem;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;