Skip to content

Instantly share code, notes, and snippets.

View Db connection
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 Aug 29, 2015
Ready daemon to monitor new queries on Parse.com
View Daemon
import cups
import time
import json,httplib
import random
import qrcode
from xhtml2pdf import pisa
notes = 7
array = {}
mSeconds = 2
View Convert from html to pdf and printing
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"))
View gist:b57c5c94ff5f77fbe919
#include <iostream>
#include <conio.h>
int getDet(int, int**);
int countMinor(int **);
int** getMinor(int**, int, int, int);
View gist:8137b1bdfbfc3059a4a4
# Built application files
*.apk
*.ap_
# Files for the Dalvik VM
*.dex
# Java class files
*.class
View SecondProgram_.gitignore
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
View FirstProgram_.gitignore
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
View HelloWorld_.gitignore
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
View gist:e25a13db5c2e8494aaf6
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;
//----------------------------------------------------------
View gist:565e22cc0f2da1d95ecf
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>();
You can’t perform that action at this time.