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.CodeDom.Compiler; | |
using System.IO; | |
namespace OptimisedAdd | |
{ | |
public static class Math | |
{ | |
// Optimised version of the + operator. | |
public static void Add(int left, int right, out int result) |
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
funcs = [] | |
def f(): | |
for i in xrange(5): | |
def g(): return i | |
funcs.append(g) | |
f() | |
for f in funcs: |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <sys/ioctl.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <linux/kvm.h> | |
#include <errno.h> | |
#include <string.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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/ioctl.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <linux/kvm.h> | |
#include <errno.h> | |
#include <string.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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/ioctl.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <linux/kvm.h> | |
#include <errno.h> | |
#include <string.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
<!doctype html> | |
Please select an audio file: <input type='file' id='file'> | |
<script src='http://code.jquery.com/jquery-1.5.1.js'></script> | |
<script src='https://github.com/corbanbrook/dsp.js/raw/master/dsp.js'></script> | |
<script type='text/javascript'> | |
var fileElement = document.getElementById('file'); | |
var sampleRate = 44100; | |
var frameSize = 4096; | |
var signal = new Float32Array(frameSize/2); | |
var buffer = []; |
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.Collections; | |
using System.Reflection; | |
using Castle.Core; | |
using Castle.Core.Internal; | |
using Castle.Facilities.TypedFactory; | |
using Castle.MicroKernel; | |
using Castle.MicroKernel.ComponentActivator; | |
using Castle.MicroKernel.Registration; |
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.Collections.Generic; | |
using System.Linq; | |
using Castle.MicroKernel.Registration; | |
using Castle.MicroKernel.Resolvers.SpecializedResolvers; | |
using Castle.Windsor; | |
namespace castlefacttest | |
{ |
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 <string.h> | |
#include <iostream> | |
#include "jpeg.h" | |
#define FORC(cnt) for (c=0; c < cnt; c++) | |
#define FORC3 FORC(3) | |
#define FORC4 FORC(4) |
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
(function() { | |
var ClientState, util, uuid; | |
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | |
uuid = require("node-uuid"); | |
util = require('util'); | |
ClientState = (function() { | |
function ClientState(client_id, redis, amqp, exch, send, terminate) { | |
this.client_id = client_id; | |
this.redis = redis; | |
this.amqp = amqp; |
OlderNewer