Skip to content

Instantly share code, notes, and snippets.

View armornick's full-sized avatar

Nick Arnoeyts armornick

  • Belgium
View GitHub Profile
@armornick
armornick / ln.js
Created March 19, 2015 09:19
A featureless implementation of the UNIX ls utility using Node and Shelljs
// module imports
var ln = require('shelljs').ln,
test = require('shelljs').test,
exit = require('shelljs').exit,
path = require('path');
// command line argument parsing
var opts = require("nomnom")
.option('symbolic', {
@armornick
armornick / responsive-nav.html
Last active August 29, 2015 14:17
First responsive navigation test from scratch
<!DOCTYPE html>
<!--
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
@armornick
armornick / manual-off-canvas.html
Last active August 29, 2015 14:17
My first manual off-canvas menu test from scratch (and ongoing testing)
<!DOCTYPE html>
<!--
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
/**
* Default Body Class Styles
*/
.rtl {}
.home {}
.blog {}
.archive {}
.date {}
.search {}
@armornick
armornick / portable_node.bat
Last active August 29, 2015 14:20
Portable Node Shell script for Windows
@echo off
:: set the local configuration directory --------------
:: NOTE: also change nodevars.bat to use this instead of %APPDATA%
set NODE_PORTABLE_PREFIX=%~dp0local
:: NPM CONFIGURATIOn ----------------------------------
:: set npm_config_key=value
:: ----------------------------------------------------
set npm_config_prefix=%NODE_PORTABLE_PREFIX%
@armornick
armornick / supertux-freetype.cs
Created January 8, 2012 10:56
Binding C-Libraries to .NET (C#) -- Copyright SuperTux#
/* WARNING: Automatically generated file */
using System;
using System.Runtime.InteropServices;
using System.Security;
using System.Collections;
namespace FreeType {
[StructLayout(LayoutKind.Sequential)]
@armornick
armornick / jquery.mustache.js
Created May 20, 2012 18:04
Mustache.js jQuery
/*
Shameless port of a shameless port
@defunkt => @janl => @aq
See http://github.com/defunkt/mustache for more info.
*/
;(function($) {
/*!
@armornick
armornick / pygame2exe.py
Created August 27, 2012 19:19
Pygame Py2exe Setup Script
# This will create a dist directory containing the executable file, all the data
# directories. All Libraries will be bundled in executable file.
#
# Run the build process by entering 'pygame2exe.py' or
# 'python pygame2exe.py' in a console prompt.
#
# To build exe, python, pygame, and py2exe have to be installed. After
# building exe none of this libraries are needed.
#Please Note have a backup file in a different directory as if it crashes you
#will loose it all!(I lost 6 months of work because I did not do this)
@armornick
armornick / gist:3600378
Created September 2, 2012 15:17
Love2d Resource Manager
-- exporting table
local exports = {}
-- table containing the resources
local resources = {}
local imagepath = "image"
local soundpath = "sounds"
local fontpath = "fonts"
-- add image to resource manager
@armornick
armornick / .hxcpp_config.xml
Created December 9, 2012 19:38
HxCpp config for Mingw
<!--
This file will get included twice - once at the beginning - once at the end.
The first time though, the "vars" section is parsed, and this is where you can
set variables to control the setup of the standard compilers and install paths etc.
The second time, the "exes" section is parsed, and you can modify the linkers/compilers
by adding flags to these executables.