Skip to content

Instantly share code, notes, and snippets.

View GeertVL-zz's full-sized avatar
💭
Working full time in Azure technologies

Geert Van Laethem GeertVL-zz

💭
Working full time in Azure technologies
View GitHub Profile
@GeertVL-zz
GeertVL-zz / gist:3249829
Created August 3, 2012 17:32
Little Compiler 2
#include "llvm/DerivedTypes.h"
#include "llvm/IRBuilder.h"
#include "llvm/LLVMContext.h"
#include "llvm/Module.h"
#include "llvm/Analysis/Verifier.h"
#include "llvm/Support/raw_os_ostream.h"
#include <iostream>
#include <fstream>
#include <vector>
@GeertVL-zz
GeertVL-zz / gist:4140039
Created November 24, 2012 15:07
How to enable remote desktop on windows 2012
SystemPropertiesRemote.exe
ipconfig
@GeertVL-zz
GeertVL-zz / editor tryout
Created May 8, 2013 20:16
Research for scriptor.io
<!DOCTYPE html>
<html lang="en">
<head>
<style>
.blocks {
display: inline;
}
p {
padding: 0;
margin: 0;
@GeertVL-zz
GeertVL-zz / controllers.js
Last active December 20, 2015 00:49
for stack example
$scope.ondernemingnr = "BE1111.111.111";
lastenboekData.getLastenboeken($scope.ondernemingnr, function(err, data) {
if (err) {
console.log(err);
} else {
$scope.lastenboeken = data;
if ($scope.lastenboeken.length > 0) {
$scope.LastenboekId = $scope.lastenboeken[0].Id;
}
}
res.header('content-type', contentType);
res.send({ 'cards': cards,
'links': [{
'method': 'get',
'rel': 'http://relations.stackofcards.com/card',
'href': '/api/card/'
}]
});
@GeertVL-zz
GeertVL-zz / Point.cs
Created July 28, 2013 14:59
Game math
using System;
namespace MacRocketFly
{
public class Point
{
public float X {
get;
set;
}
@GeertVL-zz
GeertVL-zz / fileupload.html
Created August 22, 2013 05:43
fileupload that works in html4 and html5
<!DOCTYPE html>
<html >
<head>
<title>Files property test</title>
<script type="text/javascript">
function reqListener() {
console.log('listened');
}
function getFiles() {
mymodule.directive('nullIfEmpty', [function() {
return {
require: 'ngModel',
link: function(scope, elm, attr, ctrl) {
ctrl.$parsers.unshift(function(value) {
return value === '' ? null : value;
});
}
};
}]
@GeertVL-zz
GeertVL-zz / simple.rb
Created September 26, 2013 13:40
Exercise for 'Understanding Computation'
## Arrived at page 52 (Statements)
class Number < Struct.new(:value)
def to_s
value.to_s
end
def inspect
"<<#{self}>>"
end
using System;
using System.Collections.Generic;
using System.IO;
using System.Xml;
namespace TOCParser
{
public class XHtmlDocParser
{
private XmlNamespaceManager _mgr;