This file contains hidden or 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
| 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() { |
This file contains hidden or 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/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): |
This file contains hidden or 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 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: |
This file contains hidden or 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/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)); |
This file contains hidden or 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 createElement = function () { | |
| console.log(arguments); | |
| return { | |
| tag: arguments[0], | |
| info: arguments[1], | |
| children: Array.prototype.slice.call(arguments, 2) | |
| } | |
| }; |
This file contains hidden or 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
| object Hell { | |
| case class LLVMOpaqueContext() | |
| case class LLVMOpaqueModule() | |
| case class LLVMOpaqueType() | |
| case class LLVMOpaqueValue() | |
| case class LLVMOpaqueBasicBlock() | |
| case class LLVMOpaqueBuilder() | |
| case class LLVMBool() |