Skip to content

Instantly share code, notes, and snippets.

import cups
import time
import json,httplib
import random
import qrcode
from xhtml2pdf import pisa
import mysql.connector
import datetime
#Data to get access to database in hosting
@stopfaner
stopfaner / Daemon
Last active August 29, 2015 14:12
Ready daemon to monitor new queries on Parse.com
import cups
import time
import json,httplib
import random
import qrcode
from xhtml2pdf import pisa
notes = 7
array = {}
mSeconds = 2
import cups
from xhtml2pdf import pisa
def main():
filename = "/home/stopfan/print.pdf"
xhtml = "<h1>Test print</h1>\n"
xhtml += "<h2>This is test print</h2>\n"
xhtml += "<p><img src='/home/stopfan/image.jpg'/></p>"
pdf = pisa.CreatePDF(xhtml, file(filename, "w"))
@stopfaner
stopfaner / gist:b57c5c94ff5f77fbe919
Created September 26, 2014 22:31
Determinant of matrix
#include <iostream>
#include <conio.h>
int getDet(int, int**);
int countMinor(int **);
int** getMinor(int**, int, int, int);
# Built application files
*.apk
*.ap_
# Files for the Dalvik VM
*.dex
# Java class files
*.class
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
@stopfaner
stopfaner / HelloWorld_.gitignore
Created September 4, 2014 12:14
NewRepository
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
@stopfaner
stopfaner / gist:e25a13db5c2e8494aaf6
Created July 28, 2014 11:03
Turtle moving algorithm
public class Solution {
/*
* Initialisation of sum
* Initialization of parametres of field
*/
public static double sum=1;
public static double heigth = 3;
public static double length = 3;
//----------------------------------------------------------
@stopfaner
stopfaner / gist:565e22cc0f2da1d95ecf
Created July 21, 2014 19:30
Fuck Yeah number two
import java.io.File;
import java.io.IOException;
import java.util.*;
public class main {
//Arrays declarations
//Array of Human objects
public static List<Human> humans = new ArrayList<Human>();