Skip to content

Instantly share code, notes, and snippets.

View wallymathieu's full-sized avatar

Oskar Mathieu Gewalli wallymathieu

View GitHub Profile
@wallymathieu
wallymathieu / build.cmd
Last active May 11, 2016 09:13
with filepath from cmd path
REM http://ss64.com/nt/syntax.html
REM https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true
"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild" "%~dp0\Somesolution.sln"
@wallymathieu
wallymathieu / BasicReport.js
Created May 28, 2015 09:24
Possible to style basic workbook, the documentation should perhaps be updated.
define(['../Excel/Workbook', '../Excel/Table'], function (Workbook, Table) {
var Template = function (worksheetConstructorSettings) {
this.workbook = new Workbook();
this.stylesheet = this.workbook.getStyleSheet();
this.columns = {};
this.predefinedStyles = {
};
@wallymathieu
wallymathieu / .gitignore
Last active August 29, 2015 14:17 — forked from adamgit/.gitignore
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.3
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
@wallymathieu
wallymathieu / xml_html_tables.xsl
Last active August 29, 2015 14:14
xml to html tables
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/TR/REC-html40" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--Licensed under the new BSD License.-->
<xsl:output encoding="utf-8" indent="yes" method="html" omit-xml-declaration="yes"/>
<xsl:template match="/">
<html>
<head>
<style type="text/css">table{
border-collapse: collapse;
border: 1px solid black;
;
; "CMD Prompt Here" PowerToy
;
; Copyright 1996 Microsoft Corporation
;
; Modified to launch VS.NET 2005 command prompt 5/6/03 MG
[version]
signature="$CHICAGO$"
@wallymathieu
wallymathieu / xml_to_html.xsl
Created January 28, 2015 20:32
xml to html xslt
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
version="1.0" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--Licensed under the new BSD License.-->
<xsl:output encoding="utf-8" indent="yes" method="html" omit-xml-declaration="yes"/>
<xsl:template match="node()">
<table>
<tr>
<th>
@wallymathieu
wallymathieu / powershell.cmd
Created November 18, 2014 16:20
Start Powershell with github git
%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe -NoExit -ExecutionPolicy Unrestricted -command "& %USERPROFILE%\AppData\Local\GitHub\shell.ps1"
@wallymathieu
wallymathieu / ToShowOnBigScreenController.cs
Created October 30, 2014 08:00
Resharper reports that apikey is not used ...
[HttpGet]
public JsonResult ShowMetricsForApplication(string apikey, DateTime from, DateTime to)
{
if (!ApiKeys.IsValid(apikey)) throw new UnauthorizedAccessException();
@wallymathieu
wallymathieu / exec.py
Created October 9, 2014 08:54
exec.py in sublime text 2
# Set temporary PATH to locate executable in arg_list
if path:
old_path = os.environ["PATH"]
# The user decides in the build system whether he wants to append $PATH
# or tuck it at the front: "$PATH;C:\\new\\path", "C:\\new\\path;$PATH"
os.environ["PATH"] = ";".join( map(lambda p:p.encode(sys.getfilesystemencoding()), os.path.expandvars(path)))