Skip to content

Instantly share code, notes, and snippets.

@TheAnonymous
TheAnonymous / configure.sh
Created June 28, 2015 20:12
This is a small script to configure git via easybashgui
#!/usr/bin/env bash
source easybashgui
export supertitle="Git Konfiguration"
#
#####
#
ok_message "Willkommen.\nDieser GUI soll beim ersten einrichten helfen.Für Verbesserungsvorschläge bitte ein Issue auf Github aufmachen.\nBitte gebe im folgenden reale Daten an da diese in den Commitmessages erscheinen.\nViel Erfolg!"
#
#####
#
@TheAnonymous
TheAnonymous / WebsiteWatcher.gs
Created July 4, 2015 07:50
This is a Google Apps Script to monitor dom elements at a website if they change you will get an email.
function initSheets(sps){
var Emailsheet;
try{
Emailsheet = sps.getSheetByName("emaillist");
} catch(e){
sps.insertSheet("emaillist")
Emailsheet = sps.getSheetByName("emaillist");
Emailsheet.getRange("A1").setValue("[email protected]")
}
@TheAnonymous
TheAnonymous / AngularFireUpload.js
Created July 20, 2015 07:00
Example code for Firebase with AngularJS to upload a image.
var refImg = new Firebase("https://YOURURL.firebaseio.com/images/" + $rootScope.authData.uid);
var ImgObj = $firebaseObject(refImg);
function saveimage(e1) {
var filename = e1.target.files[0];
var fr = new FileReader();
fr.onload = function (res) {
$scope.image = res.target.result;
ImgObj.image = res.target.result;
import numpy as np
import cv2
#from matplotlib import pyplot as plt
cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FPS, 20)
# Define the codec and create VideoWriter object
#fourcc = cv2.cv.CV_FOURCC(*'DIVX')
###width = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH) + 0.5)
###height = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT) + 0.5)
@TheAnonymous
TheAnonymous / test_if_element_in_viewport.html
Created June 3, 2016 08:32
This is an example how to test if an element is in viewport.
<!DOCTYPE html>
<html>
<header>
<meta charset="utf-8"/>
<title>Test if element is in viewport</title>
</header>
<body>
</body>
@TheAnonymous
TheAnonymous / pom.xml
Last active August 10, 2017 07:45
Example for Maven + Node stuff
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>delete email stuff</id>
<phase>clean</phase>
<goals>
<goal>clean</goal>