Skip to content

Instantly share code, notes, and snippets.

javascript:(function({
var INSTAPAPER=true,w=window,d=document,pageSelectedTxt=w.getSelection?w.getSelection():(d.getSelection)?d.getSelection():(d.selection?d.selection.createRange().text:0),pageTitle=d.title,pageUri=w.location.href,tmplt="";
tmplt="From ["+pageTitle+"]("+pageUri+"):\n\n";
if(pageSelectedTxt!="") {
pageSelectedTxt=">%20"+pageSelectedTxt;
pageSelectedTxt=pageSelectedTxt.replace(/(\r\n|\n+|\r)/gm,"\n");
pageSelectedTxt=pageSelectedTxt.replace(/\n/g,"\n>%20\n>%20");
w.location.href="nvalt://make/?txt="+encodeURIComponent(tmplt+pageSelectedTxt)+"&title="+encodeURIComponent(pageTitle)
}
else {
@drunkensouljah
drunkensouljah / 404
Created February 13, 2016 21:15
error
\ SORRY /
\ /
\ This page does /
] not exist yet. [ ,'|
] [ / |
]___ ___[ ,' |
] ]\ /[ [ |: |
] ] \ / [ [ |: |
] ] ] [ [ [ |: |
@drunkensouljah
drunkensouljah / README.md
Created February 13, 2016 17:59 — forked from zenorocha/README.md
A template for Github READMEs (Markdown) + Sublime Snippet

Project Name

TODO: Write a project description

Installation

TODO: Describe the installation process

Usage

@drunkensouljah
drunkensouljah / data.json
Created February 7, 2016 00:24
test json
[{"User_Name":"John Doe","score":"10","team":"1"},{"User_Name":"Jane Smith","score":"15","team":"2"},{"User_Name":"Chuck Berry","score":"12","team":"2"}]
{"users":[
{
"firstName":"Horst",
"lastName":"Bierwurst",
"joined": {
"month":"January",
"day":12,
"year":2016
}
},
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@drunkensouljah
drunkensouljah / begruessung.php
Created November 12, 2015 21:45
Tageszeitabhängige Begrüßung auf der Webseite
<?php
if(date("G") < 12) {$a="Guten Morgen";}
if(date("G") <= 18 && date("G") >= 12) {$a="Guten Tag";}
if(date("G") >= 19) {$a="Guten Abend";}
echo $a;
?>
@drunkensouljah
drunkensouljah / tagesbild.js
Created November 11, 2015 22:03
Jeden Tag der Woche ein anderes Bild anzeigen lassen
<script type="text/javascript"><!--
var imlocation = "images/";
function ImageArray (n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
image = new ImageArray(7)
image[0] = 'Sonntag.gif'
@drunkensouljah
drunkensouljah / weiterleitung.html
Created November 11, 2015 21:33
weiterleitung
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0;url=pages/index.html">
<title>Seitentitel</title>
<script language="javascript">
window.location.href = "pages/index.html"
</script>
</head>
<body>
@drunkensouljah
drunkensouljah / uhrzeit.html
Created November 8, 2015 21:12
Uhrzeit auf homepage ausgeben (Javascript)
<!DOCTYPE html>
<html>
<head>
<script>
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
m = checkTime(m);