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
--- /home/andy/dev/ffmpeg/libavfilter/af_compand.c 2014-02-02 12:07:39.789987354 -0500 | |
+++ /home/andy/dev/libav/libavfilter/af_compand.c 2014-02-08 16:50:46.428038489 -0500 | |
@@ -3,8 +3,9 @@ | |
* Copyright (c) 1999 Nick Bailey | |
* Copyright (c) 2007 Rob Sykes <robs@users.sourceforge.net> | |
* Copyright (c) 2013 Paul B Mahol | |
+ * Copyright (c) 2014 Andrew Kelley | |
* | |
- * This file is part of FFmpeg. | |
+ * This file is part of libav. |
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 random | |
def guess(): | |
board = [[False] * 8 for y in range(8)] | |
left = 8 | |
while left > 0: | |
x = random.randint(0, 7) | |
y = random.randint(0, 7) | |
if not board[y][x]: | |
board[y][x] = True |
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 fs = require('fs'); | |
var crypto = require('crypto'); | |
var path = require('path'); | |
var mkdirp = require('mkdirp'); | |
var count = 2863 * 8; | |
var dirs = [n()]; | |
while (count > 0) { | |
if (Math.random() < 0.66) { |
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 AWS = require('aws-sdk'); | |
var fs = require('fs'); | |
var crypto = require('crypto'); | |
var client = new AWS.S3({ | |
accessKeyId: process.env.S3_KEY, | |
secretAccessKey: process.env.S3_SECRET, | |
}); |
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
static int memstrcmp(const char *mem, int mem_size, const char *str) { | |
for (int i = 0; i < mem_size; i++, str++) { | |
if (!*str || *str != mem[i]) | |
return (mem[i] < *str) ? -1 : (mem[i] > *str); | |
} | |
return (*str > 0) ? -1 : 0; | |
} |
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 http = require('http'); | |
var fs = require("fs"); | |
var Transform = require("stream").Transform; | |
var PassThrough = require("stream").PassThrough; | |
var zlib = require("zlib"); | |
var util = require("util"); | |
var EventEmitter = require("events").EventEmitter; | |
var server = http.createServer(function(req, resp) { | |
console.log("got request"); |
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
A = B = True | |
X = Y = False | |
problems = ( | |
lambda P,Q: A or P, | |
lambda P,Q: Q and X, | |
lambda P,Q: Q or not X, | |
lambda P,Q: not B and P, | |
lambda P,Q: P or not P, | |
lambda P,Q: not P or (Q or P), |
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 "llvm-c/Core.h" | |
int main(int argc, char *argv[]) { | |
LLVMBuilderRef builder = LLVMCreateBuilder(); | |
LLVMModuleRef module = LLVMModuleCreateWithName("main_module"); | |
LLVMTypeRef main_type = LLVMFunctionType(LLVMVoidType(), NULL, 0, 0); | |
LLVMValueRef main_fn = LLVMAddFunction(module, "main", main_type); | |
LLVMSetFunctionCallConv(main_fn, LLVMCCallConv); |
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
diff --git a/src/client/app.js b/src/client/app.js | |
index f5453f7..88ee9ed 100644 | |
--- a/src/client/app.js | |
+++ b/src/client/app.js | |
@@ -2832,7 +2832,9 @@ function renderEvents() { | |
function getEventMessageHtml(ev) { | |
var fn = eventTypeMessageFns[ev.type]; | |
if (!fn) throw new Error("Unknown event type: " + ev.type); | |
- return fn(ev); | |
+ var flags = {safe: false}; |
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
exports.remove = removeDiacritics; | |
var replacementList = [ | |
{ | |
base: ' ', | |
chars: "\u00A0", | |
}, { | |
base: '0', | |
chars: "\u07C0", | |
}, { |
OlderNewer