Skip to content

Instantly share code, notes, and snippets.

View trapatsas's full-sized avatar

Panagiotis Trapatsas trapatsas

View GitHub Profile
import time
from collections import Counter
from pprint import pprint
def all_sums(values, threshold, previous_sums=None):
"""
values must be sorted
previous_sums is a Counter of previously obtained possible sums
import logging
import time
import daemon
from daemon import pidfile as pidlockfile
from daemon import runner as rnr
import signal
import setproctitle
# Setting logging configuration
logger = logging.getLogger("MyScript")
var original = [
{
"createDate":"Jun 19, 2015 11:27:07 AM",
"flowName":"kostas",
"sumAmount":255750,
"charges":465
},{
"createDate":"Jun 19, 2015 11:27:07 AM",
"flowName":"alex",
"sumAmount":261288,
@trapatsas
trapatsas / designer.html
Created August 20, 2014 09:16
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<link rel="import" href="../paper-calculator/paper-calculator.html">
@trapatsas
trapatsas / RSLPS
Created April 25, 2014 07:06
C# version of RSLPS game for Challenge #159
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace RSLPS
{
class Program
{
static void Main(string[] args)