Skip to content

Instantly share code, notes, and snippets.

View ollie64's full-sized avatar

Oleg Baskakov ollie64

View GitHub Profile
@ollie64
ollie64 / Heap.java
Last active December 10, 2015 15:18
package com.github.obask;
import java.util.ArrayList;
import java.util.List;
public class Heap<Elem extends Comparable<Elem>> {
public List<Elem> heap = new ArrayList<>();
public int size() {
#! /usr/bin/python
# See README.txt for information and build instructions.
import addressbook_pb2
import struct
import sys
# Iterates though all people in the AddressBook and prints info about them.
def ListPeople(person):
@ollie64
ollie64 / sshd.go
Created November 5, 2015 02:46 — forked from jpillora/sshd.go
Go 1.3 SSH server complete example
// A small SSH daemon providing bash sessions
//
// Server:
// cd my/new/dir/
// #generate server keypair
// ssh-keygen -t rsa
// go get -v .
// go run sshd.go
//
// Client:
#!/usr/bin/perl
if (! scalar @ARGV ) {
print "Usage: htpasswd-b passwordfile user password\n";
print "(this program automatically creates the pw file if needed.)\n";
exit 0;
}
@saltsource = ('a'..'z', 'A'..'Z', '0'..'9','.','/');
$randum_num = int(rand(scalar @saltsource));
var createElement = function () {
console.log(arguments);
return {
tag: arguments[0],
info: arguments[1],
children: Array.prototype.slice.call(arguments, 2)
}
};
object Hell {
case class LLVMOpaqueContext()
case class LLVMOpaqueModule()
case class LLVMOpaqueType()
case class LLVMOpaqueValue()
case class LLVMOpaqueBasicBlock()
case class LLVMOpaqueBuilder()
case class LLVMBool()