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
#!/usr/bin/env python | |
# copy-ratings.py | |
# @Author: Diwaker Gupta (diwaker@floatingsun.net) | |
# @Last Change: 2008-05-28 | |
import os | |
import sys | |
import optparse | |
from pysqlite2 import dbapi2 as sqlite |
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
#!/usr/bin/env python | |
# copy-ratings-to-mysqle.py | |
# @Author: Diwaker Gupta (diwaker@floatingsun.net) | |
# @Last Change: 2009-01-04 | |
import os | |
import sys | |
import optparse | |
import re |
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 re | |
import string | |
import sys | |
patterns = [] | |
def load_patterns(): | |
f = open('patterns.txt') | |
for line in f: | |
i, o = line.split() |
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 std.stdio; | |
import std.string; | |
import std.conv; | |
class AllocationItem { | |
int value; | |
this(int v) {value = v;} | |
}; | |
void RunAllocations(int iters) { |
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 <iostream> | |
#include <cstdlib> | |
#include <cstring> | |
using namespace std; | |
struct AllocationItem { | |
int value; | |
AllocationItem(int v) : value(v) {} |
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
class AllocationItem { | |
int value; | |
public AllocationItem(int value) { | |
this.value = value; | |
} | |
} | |
public class Benchmark { | |
public static void main(String[] args) { |
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 | |
function my_head_scripts($content) { | |
$content .= '<script type="text/javascript"' . | |
'src="http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js">' . | |
'</script>' . | |
'<script type="text/javascript">' . | |
'WebFont.load({' . | |
' google: { families: ["Cardo", "Crimson Text", "Vollkorn"] }' . | |
'});' . | |
'</script>'; |
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 sys = require("sys"); | |
var http = require("http"); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {"Content-Type": "text/plain"}); | |
res.end("Hello, World\n"); | |
}).listen(8124, "127.0.0.1"); | |
sys.puts("Server running at http://localhost:8124"); |
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 sys = require('sys'); | |
var http = require('http'); | |
var url = require('url'); | |
var path = require('path'); | |
function search() { | |
stdin = process.openStdin(); | |
stdin.setEncoding('utf8'); | |
stdin.on('data', function(term) { | |
term = term.substring(0, term.length - 1); |
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/apis/swift/src/main/java/org/jclouds/openstack/swift/CommonSwiftAsyncClient.java | |
+++ b/apis/swift/src/main/java/org/jclouds/openstack/swift/CommonSwiftAsyncClient.java | |
@@ -39,7 +39,8 @@ import org.jclouds.blobstore.functions.ReturnNullOnContainerNotFound; | |
import org.jclouds.blobstore.functions.ReturnNullOnKeyNotFound; | |
import org.jclouds.http.functions.ParseETagHeader; | |
import org.jclouds.http.options.GetOptions; | |
-import org.jclouds.openstack.filters.AuthenticateRequest; | |
+// import org.jclouds.openstack.filters.AuthenticateRequest; | |
+import org.jclouds.openstack.keystone.v2_0.filters.AuthenticateRequest; | |
import org.jclouds.openstack.swift.binders.BindIterableToHeadersWithContainerDeleteMetadataPrefix; |
OlderNewer