Skip to content

Instantly share code, notes, and snippets.

View whoeverest's full-sized avatar

Andrej T. whoeverest

  • Skopje, Republic of Macedonia
View GitHub Profile
/**
* Creates an array in which the contents of the given array are interspersed
* with... something. If that something is a function, it will be called on each
* insertion.
*/
function intersperse(array, something) {
if (array.length < 2) {
return array;
}
var result = [];
@whoeverest
whoeverest / damien-krsteski-tulpa.md
Last active September 3, 2015 15:32 — forked from anonymous/damien-krsteski-tulpa.md
Дамјан Крстески - Тупла

For the hundredth time I start with the toe.

По стоти пат почнувам од прстот на ногата.


Her cute little toes with nails polished red. The ankle and the pale scar bisecting it. Her pretty feet, sprouting legs spindly like cigarettes.

import os
def generate_file_paths(path):
for dirpath, dirlist, filelist in os.walk(path):
for f in filelist:
yield os.path.join(dirpath, f)
def create_filter(extension):
def filter_f(path):
return path.endswith(extension)
var express = require('express');
var app = express();
var activeState = "0";
function delayedResponse(req, res, next) {
// сите функции со req, res, next можат да бидат middleware
// во express, тоа е закон. глеј доле како ја користам
var random = 123;
setTimeout(next);
@whoeverest
whoeverest / kanali.txt
Last active December 15, 2015 14:19 — forked from markododa/kanali.txt
24 Вести
Македонски
479.25
C22
Alsat M
Регионален
751.25
C56
kalkulator.ot.mk
@whoeverest
whoeverest / cosm_credentials.py
Created November 19, 2012 10:12 — forked from glisha/readout_to_cosm.py
Хаклаб on/off switch to cosm
cosm = {
feed_id: 86779,
api_key: <COSM KEY>,
}
table=[" x x xx",
" x xx x",
" x xx x",
" x x ",
" x x "]
def numAllPercs(table, numStreams):
matrica=[list(x) for x in table]
def sosedi2(e):