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 | |
from collections import namedtuple | |
Class = namedtuple('Class', ['namespace', 'name', 'template_arguments']) | |
def parse_recursive(string): | |
template_start = string.find('<') | |
template_end = string.rfind('>') | |
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 | |
names = ["arbel", "liav", "yuval", "nevo", "matan", "nitzan", "gilad", "or"] | |
group_count = 2 | |
groups = { group: [] for group in range(group_count) } | |
group_index = 0 | |
while (len(names) != 0): | |
random.shuffle(names) | |
group_index = group_index%group_count | |
groups[group_index].append(names.pop()) |
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
// Run `callback` on any function and provide arguments. | |
// Returns - a callback that takes no arguments and run the original | |
// function using the arguments provided in the call to `.callback()` | |
Function.prototype.callback = function() { | |
var args = arguments; | |
var thisFunc = this; | |
return function() { | |
return thisFunc.apply(thisFunc, Array.prototype.slice.call(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
// | |
// AppRater.swift | |
// EasyGraphCalculator_iOS | |
// | |
// Created by arbel03 on 23/03/2016. | |
// Copyright © 2016 arbel03. All rights reserved. | |
// | |
import UIKit | |
class AppRater { |
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
// | |
// BasicAuthenticationExtension.swift | |
// ToCheckIn | |
// | |
// Created by arbel03 on 25/08/2016. | |
// Copyright © 2016 arbel03. All rights reserved. | |
// | |
import Foundation |