Skip to content

Instantly share code, notes, and snippets.

Application.ensure_all_started(:hound)
ExUnit.start
Mix.Task.run "ecto.create", ~w(-r PatronLeague.Repo --quiet)
Mix.Task.run "ecto.migrate", ~w(-r PatronLeague.Repo --quiet)
Ecto.Adapters.SQL.begin_test_transaction(PatronLeague.Repo)
defmodule ApiHelper do
use ExUnit.Case, async: false
use PatronLeague.ConnCase
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)
@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
@Hajto
Hajto / Yeril.c
Last active November 29, 2016 13:45
#include <stdio.h>
#include <stdlib.h>
#include<math.h>
int NWD(int x, int y) {
int z;
while (y != 0) {
z = x % y;
x = y;
y = z;
package com.example.wk.projektkoncowywiolettakurek.Classes;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.util.Log;
import com.example.wk.projektkoncowywiolettakurek.Collages.CollageActivity;