Skip to content

Instantly share code, notes, and snippets.

@Hajto
Hajto / giveaway_manager.ex
Last active April 7, 2016 06:53
Elixir Deadlock, don't ever try to the same thing.
defmodule TwitchSniper.GiveawayManager do
use GenServer
require Logger
def start_link do
GenServer.start_link(__MODULE__, :ok, name: __MODULE__)
end
def new_giveaway(item) do
GenServer.cast(__MODULE__, {:new_item, item})
var Editor = function(el){
this.element = el;
this.cursors = [];
this.lines = [];
this.creatLine = function (linenum){
var that = this;
var el = document.creatElement("p")
el.adEvenListener("click",function(){
//that to ten obiekt
},true);
@Hajto
Hajto / editor.js
Last active June 10, 2016 10:44 — forked from Pan-Maciek/editor.js
var Editor = function(el){
this.element = el
this.cursors = []
this.lines = []
}
Editor.prototype.creatLine = function (linenum){
var that = this
var el = document.createElement("p")
el.addEventListener("click",function(){
that.lines.push(el)
FROM jenkins
# if we want to install via apt
USER root
RUN curl -L https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 > /usr/bin/docker && chmod +x /usr/bin/docker
#Install the stuff you need
#USER jenkins
@Hajto
Hajto / kpsz.md
Last active October 12, 2016 11:01 — forked from baransu/kpsz.md

fichery

  • zarzadzanie uzytkownikami
    • przydzielanie praw
    • dodawanie
    • usuwanie
    • crud
  • zarzadzanie wydarzeniami (crud)
    • zdjecia z wydarzenia (osoby biorace udzial i organizator)
    • wielostopniowe dodawanie uzytkownikow
  • nic nie wiadomo
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//Wersja L
int main(){
int** matrix;
int width = 0;
int height = 0;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//Wersja L
int main(){
int** matrix;
int width = 0;
int height = 0;
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define li 100 //liczba iteracji do szeregu
//tablicowanie fcji sin w <a,b> - szereg + fcja biblioteczna
//definicja funkcji szereg x - parametr formalny
double szereg(double x)
{
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define IT_COUNT 51
#define li 100 //liczba iteracji do szeregu
//tablicowanie fcji sin w <a,b> - szereg + fcja biblioteczna
//definicja funkcji szereg x - parametr formalny
double szereg(double x)
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define IT_COUNT 1001
//tablicowanie fcji sin w <a,b> - szereg + fcja biblioteczna
//definicja funkcji szereg x - parametr formalny
double szereg_rek(double x, double it){
if( it >= IT_COUNT)
return x;