Skip to content

Instantly share code, notes, and snippets.

View thenonameguy's full-sized avatar
🛠️
Preparing Schemamap.io go-live 🎉

Krisztián Szabó thenonameguy

🛠️
Preparing Schemamap.io go-live 🎉
View GitHub Profile
@thenonameguy
thenonameguy / bartos.go
Created February 9, 2014 16:59
Bartos élete végéig köszöntő programocska
package main
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"net/http"
"net/url"
"strconv"
@thenonameguy
thenonameguy / pi_img.go
Created March 3, 2014 12:57
Golang pretty prime image generator, example output: http://imgur.com/w2BXltB
package main
import (
"flag"
"image"
"image/color"
"image/png"
"log"
"math"
"os"
(ns enchilada.simple-demo
(:require
[jayq.core :refer [show]]
[enchilada :refer [ctx canvas]]
[monet.canvas :refer [fill-style fill-rect]]))
(def dummy)
(show canvas)
(->
@thenonameguy
thenonameguy / 4chandown.py
Created August 26, 2012 21:00
Download a 4chan thread to a directory
import os
import sys
import urllib
import urllib2
import re
import time
if not len(sys.argv) >= 3:
print "Missing parameters."
print "Usage: python 4chan.py <url> <folder>"
@thenonameguy
thenonameguy / singleton.cpp
Created August 28, 2012 11:17
Singleton base
class S
{
public:
static S& getInstance()
{
static S instance; // Guaranteed to be destroyed.
// Instantiated on first use.
return instance;
}
private:
@thenonameguy
thenonameguy / leall.py
Created November 6, 2012 17:00
Python leállás
import os
def leall(percmulva):
os.system("shutdown -s -t "+percmulva*60)
@thenonameguy
thenonameguy / matrix.py
Created December 8, 2012 14:14
NxN Matrix rotation
class SquareMatrix():
"""Square matrix implementation by thenonameguy"""
def __init__(self,size):
self.size = size
self.emptyMatrix()
def emptyMatrix(self):
self.matrix=[[0 for i in range(self.size)]for j in range(self.size)]
def makeIdentity(self):
@thenonameguy
thenonameguy / javitott.cs
Created December 8, 2012 19:23
Javított Tortosztalygrafikus
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TortOsztalyosGrafikus
@thenonameguy
thenonameguy / base.cljs
Created January 23, 2020 11:23
Combined pathom-viz UI
(ns com.wsscode.pathom.viz.standalone.base)
(defonce app (atom nil))
(defn reconciler []
(some-> app deref :reconciler))
(defn networks []
(some-> app deref :networking))
@thenonameguy
thenonameguy / default.nix
Created December 30, 2020 13:42
NixOS zprint clojure local default.nix
{ stdenv, zlib, lib, qt5, saneBackends, makeWrapper, fetchurl }:
stdenv.mkDerivation rec {
name = "zprint-bin-${version}";
version = "1.0.2";
src = ./.;
dontConfigure = true;
dontBuild = true;