Skip to content

Instantly share code, notes, and snippets.

View sjb-gist's full-sized avatar

Steve Beaulac sjb-gist

View GitHub Profile
@sjb-gist
sjb-gist / cs_ext.py
Created October 16, 2012 15:34
waf: extra support for csharp builds
#!/usr/bin/env python
# encoding: utf-8
# Copyright © 2012 SjB <steve@nca.uwo.ca>. All Rights Reserved.
import os, shutil
from waflib.TaskGen import feature, extension, after, before
from waflib.Task import Task
from waflib.Configure import conf
from waflib.Tools import ccroot
@sjb-gist
sjb-gist / gist:3941006
Created October 23, 2012 19:24
CS Sublime Text 2 Project: buildsystem command for msbuild
{
"cmd": ["msbuild"],
"path": "C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319",
"working_dir": "${project_path:${folder}}",
"file_regex": "^ (.*)\\(([0-9]*),([0-9]*)"
}
@sjb-gist
sjb-gist / waf-example.sublime-project
Created October 24, 2012 03:20
sublime-project: Build system json for waf build system.
{
"build_systems":
[
{
"cmd":
[
"${project_path:.}/waf",
"${file_name}"
],
"name": "waf",
@sjb-gist
sjb-gist / waf-cs.sublime-build
Created November 7, 2012 18:43
sublime build configuration for waf script compiling c# codes
{
"working_dir": "${project_path}",
"cmd": ["${project_path:.}/waf", "build"],
"selector": "source.cs",
"file_regex": "^\\.*/(.*)\\((\\d+),(\\d+)\\):\\s*(.*)$",
"variants":
[
{
"cmd": ["${project_path:.}/waf", "configure"],
"name": "Configure"
@sjb-gist
sjb-gist / AssemblyInfo.cs.in
Created November 21, 2012 19:47
Template: AssemblyInfo
/**
* @file AssemblyInfo.cs.in
*
* encoding: utf-8
* Copyright © 2012 SjB <steve@sagacity.ca>. All Rights Reserved.
*
*/
using System.Reflection;
using System.Runtime.CompilerServices;
@sjb-gist
sjb-gist / wscript
Last active October 13, 2015 17:08
waf: wscript
#!/usr/bin/env python
# encoding: utf-8
# Copyright © 2012 SjB <steve@nca.uwo.ca>. All Rights Reserved.
import os
from waflib import Options
APPNAME = ""
VERSION = "0.0.1"
@sjb-gist
sjb-gist / wscript_build
Created September 27, 2013 19:50
waf: dll wscript_build script
#!/usr/bin/env python
# encoding: utf-8
# Copyright (c) 2012 SjB <steve@nca.uwo.ca>. All Rights Reserved.
dll_name = 'DLL_DEFAULT_NAME'
srcs = []
external_libs = []
@sjb-gist
sjb-gist / 0_reuse_code.js
Created October 21, 2013 13:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console