Skip to content

Instantly share code, notes, and snippets.

View nicoknoll's full-sized avatar
💯
Getting things done.

Nico Knoll nicoknoll

💯
Getting things done.
View GitHub Profile
@nicoknoll
nicoknoll / db2.java
Created June 26, 2016 09:39
Julius Übung DBS
import java.sql.*;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
public class DBSUebung {
/**
* Get a new database connection
*
{
"value": 4.2199507,
"description": "product of:",
"details": [
{
"value": 6.3299255,
"description": "sum of:",
"details": [
{
"value": 0.023222063,
PluggableListMorph subclass: #STweetPluggableListMorph
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'Project08-Core'
listItemHeight
"This should be cleaned up. The list should get spaced by this
parameter. "
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!-- DEFAULT VARIABLES -->
<meta name="color:Accent" content="#ffff01" />
<meta name="color:Background" content="#ffffff" />
<meta name="color:Text" content="#000000" />
<meta name="color:Link" content="#666666" />
@nicoknoll
nicoknoll / nodejs_structure.md
Last active December 25, 2015 13:31
nodejs_structure.md

actions.js

  • stores actions

routes.js

  • triggers actions
  • manages redirects
  • handles user permissions
  • extracts post body
@nicoknoll
nicoknoll / apple.md
Created December 9, 2015 09:59
Einkaufen bei Apple
  • Ich öffne ein Programm, das 35€ kostet und klicke auf kaufen. Alles scheint zu funktionieren und ich schließe den Appstore.
  • Programm wurde nicht installiert, also öffne ich den Appstore wieder und versuche es nochmal zu kaufen.
  • Apple sagt mir ich muss meine Rechnungsdaten aktualisieren - also irgendwie aus dem Kopf den Sicherheitscode meiner VISA-Karte wissen, die ich natürlich nicht bei mir habe. Natürlich weiß ich den nicht.
  • Also kaufe ich mir via PayPal einen 50€ Gutschein für den Appstore und deaktiviere meine Kreditkarte. Jetzt habe ich 50€ Guthaben.
  • Ich klicke auf kaufen und gebe meine AppleID-Daten an.
  • Da ich "das erste mal einen kauf auf diesem Computer" tätige soll ich meine Sicherheitsfragen beantworten. "Traumberuf" und "Wo sich meine Eltern kennen gelernt haben". Woher soll ich wissen, was ich in der 7. Klasse als Traumberuf eingegeben hatte?!
  • Um die Sicherheitsfragen zu ändern muss ich mich bei meiner AppleID einloggen. Also gehe ich auf die Apple-Webseite und logge mich mit meine
@nicoknoll
nicoknoll / example.js
Created September 9, 2015 11:51
How to open a link in a new tab
var url = 'http://nico.is';
var win = window.open(url, '_blank');
win.focus();
@nicoknoll
nicoknoll / scroll.js
Created April 26, 2015 11:02
Smooth scroll if #hash is on page
$(document).ready(function(){
$('a[href*="#"]').on('click',function (e) {
if(!($(this.hash).length)) return true;
e.preventDefault();
var target = this.hash;
var $target = $(target);
$('html, body').stop().animate({
@nicoknoll
nicoknoll / i.md
Created January 28, 2015 19:26
Convert pdf to ppt on mac an linux

In case you want to convert your PT readings from PPT(X) to PDF it's really easy:

  1. Download libreoffice: https://de.libreoffice.org/

If you own an linux you can use the following command:

$ libreoffice --headless --invisible --convert-to pdf --outdir /Users/Nico/Desktop/pt /Users/Nico/Desktop/pt/*.pptx
#include <math.h>
#include "oh_tannenbaum.h"
/* This melody is defined in the header above. */
int const melody[] = MELODY;
/********************************************************/
/* 3.) Define a constant LOUDSPEAKER_PIN containing the
number of the digital pin you just connected the
"+" pin of your loudspeaker to.