This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
using Microsoft.Build.Framework; | |
using Microsoft.Build.Utilities; | |
namespace MsBuild.TiDesktop | |
{ | |
// TODO: Turn this into a property for the task. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__ . '/lib/MtHaml/Autoloader.php'; | |
use MtHaml\Autoloader as HamlAuto; | |
use MtHaml\Environment as HamlEnv; | |
function RenderHaml($template, $mode) { | |
HamlAuto::register(); | |
$haml = new HamlEnv($mode); | |
return $haml->compileString($template, $template); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rem Do not use "echo off" to not affect any child calls. | |
@SETLOCAL | |
@SETLOCAL ENABLEEXTENSIONS | |
:: Figure out where msys's root folder. If you want, you could just add the folder in the line | |
:: below. | |
@set MSYSROOT= | |
@if "x%MSYSROOT%"=="x" @if exist "%~dp0msys.bat" @set MSYSROOT=%~dp0 | |
@if "x%MSYSROOT%"=="x" @if exist "%~dp0.msys-root" @set /P MSYSROOT=<%~dp0.msys-root | |
@if "x%MSYSROOT%"=="x" ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, requests, re | |
from htmlentitydefs import name2codepoint | |
from simplejson import loads, dumps | |
spauth = None | |
def unescape(s): | |
name2codepoint['#39'] = 39 | |
return re.sub('&(%s);' % '|'.join(name2codepoint), | |
lambda m: unichr(name2codepoint[m.group(1)]), s) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==ClosureCompiler== | |
// @output_file_name delete-sp2010-field.js | |
// @compilation_level SIMPLE_OPTIMIZATIONS | |
// ==/ClosureCompiler== | |
/** | |
* @projectDescription An anonymous function, to be run from the browser's console on a | |
* Sharepoint 2010 List View page or Form. (For instance, | |
* http://site/Lists/MyList/AllItems.aspx) The script creates a UI | |
* that lists all Workflow Status fields and allows for the easy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <io.h> | |
#include "symbols.h" | |
typedef unsigned int uint; | |
typedef unsigned char uchar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Generated by re2c 0.9.1-C on Wed Aug 01 00:28:19 2012 | |
*/ | |
#line 1 "c.re" | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <io.h> | |
#include "symbols.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Utility one-liners for checking types, values, etc */ | |
var prims = ['string', 'number', 'boolean', 'function', 'array' ], | |
typof = function(x) { var s, t = typeof(x); return t === 'object' ? (s = Object.prototype.toString.call(x)).substring(8, s.length - 1).toLowerCase() : t; }, | |
undef = function(x) { return typeof(x) === 'undefined' || x == undefined; }, | |
defined = function(x) { return !undef(x); }, | |
noVal = function(x) { return undef(x) || typof(x) === 'null' || x == null || isNaN(x); }, | |
hasVal = function(x) { return !noVal(x); }, | |
isStr = function(x) { return typof(x) === prims[0]; }, | |
isNum = function(x) { return typof(x) === prims[1]; }, | |
isBool = function(x) { return typof(x) === prims[2]; }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==ClosureCompiler== | |
// @output_file_name vos365.sp.js | |
// @compilation_level SIMPLE_OPTIMIZATIONS | |
// ==/ClosureCompiler== | |
(function(global, doc, handler) { | |
/* Utility one-liners for checking types, values, etc */ | |
var prims = ['string', 'number', 'boolean', 'function', 'array'], | |
// Type checks | |
typof = function(x) { var s, t = typeof (x); return t === 'object' ? (s = Object.prototype.toString.call(x)).substring(8, s.length - 1).toLowerCase() : t; }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $V = function() { | |
var args = Array.prototype.slice.call(arguments, 0); | |
if(!(this instanceof arguments.callee)) { | |
var $VA = arguments.callee, | |
$VB = function() {}, inst, ret; | |
$VB.prototype = $VA.prototype; | |
return Object(ret = $VA.apply(inst = new $VA, args)) === ret ? ret : inst; | |
} | |
this.originalValue = (function(a) { | |
switch(a.length) { |
OlderNewer