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
eqwqweeqw | |
123456 |
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
use strict; | |
print "Hello World!\n"; |
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
describe('Ant', function () { | |
it('turns right on white cell', function() { | |
expect(resolveAntDirection('north', 'white')).toEqual(turnRight('north')); | |
expect(resolveAntDirection('south', 'white')).toEqual(turnRight('south')); | |
expect(resolveAntDirection('west', 'white')).toEqual(turnRight('west')); | |
}); | |
it('turns left on black cell', function() { | |
expect(resolveAntDirection('north', 'black')).toEqual(turnLeft('north')); | |
expect(resolveAntDirection('south', 'black')).toEqual(turnLeft('south')); |
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
maio:~ $ cat ~/Library/KeyBindings/DefaultKeyBinding.dict | |
{ | |
"~d" = "deleteWordForward:"; | |
"^w" = "deleteWordBackward:"; | |
"~f" = "moveWordForward:"; | |
"~b" = "moveWordBackward:"; | |
"^/" = "undo:"; | |
"^g" = { | |
"^g" = ("insertText:", "marian.schubert@gmail.com"); | |
"^d" = ("insertText:", "marian.schubert@gooddata.com"); |
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
(ns kata.core-test | |
(:require [clojure.test :refer :all])) | |
;; Langton's Ant - http://en.wikipedia.org/wiki/Langton's_ant | |
;; | |
;; At a white square, turn 90° right, flip the color of the square, move forward one unit | |
;; At a black square, turn 90° left, flip the color of the square, move forward one unit | |
(def flip | |
{:black :white |
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 psyco | |
psyco.full() | |
BASE = 1000000 | |
PROFILE = False | |
def split1k(s): | |
s = str(s) | |
ret = [] | |
b = len(str(BASE)) |
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
from buildbot.buildslave import BuildSlave | |
c['slaves'] = [ | |
BuildSlave("bot1", "bot1passwd"), | |
] | |
c['slavePortnum'] = 9989 | |
from buildbot.changes.svnpoller import SVNPoller | |
def split_netsafe_branches(path): |
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 User: | |
name = None | |
class Book: | |
title = None | |
owner = None | |
client = None | |
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
CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "LoloCrypt" | |
RESOLVER ( (* TSOLAR) (* PUBLIC) ) | |
AS | |
import java.lang.*; | |
import java.io.*; | |
import oracle.security.crypto.core.*; | |
import oracle.security.crypto.util.*; | |
public class LoloCrypt { | |
public static String RSAEncrypt(String data, String pubKey_base64) { |
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
In [1]: uniq(load('obr2.dat')) | |
Out[1]: 2 | |
In [2]: uniq(load('obr3.dat')) | |
Out[2]: 4 | |
In [3]: uniq(load('set_small.dat')) | |
Out[3]: 851 |
OlderNewer