Skip to content

Instantly share code, notes, and snippets.

View ntnn's full-sized avatar

Nelo-T. Wallus ntnn

  • SAP SE
  • Ludwigshafen, Germany
View GitHub Profile
{
'created_at': '2015-06-30 12:56:56',
'id': 'a8936b13-8afb-4a63-8239-e4b2ae102260',
'notebook_id': 'f7522a64-89df-4227-875d-87bc6b8822a0',
'users':
[
{
'id': '7bbe9308-b854-4b27-8b09-c635117fc4e8',
'pivot': {
'umask': 7,
#include <iostream>
using namespace std;
int main() {
char quote = (char) 34;
char comma = (char) 44;
string code[] = {
"#include <iostream>",
"using namespace std;",
"int main() {",
" char quote = (char) 34;",
@ntnn
ntnn / Makefile
Created May 29, 2015 15:44
sudo make sandwich
default:
sandwich:
ifeq ($(shell echo $$UID), 0)
# taken from http://www.ascii-art.de/ascii/s/sandwich.txt
@echo " _.---._"
@echo " _.-~ ~-._"
@echo " _.-~ ~-._"
@echo " _.-~ ~---._"
@echo " _.-~ ~\\"
from lxml import html
import requests
from difflib import unified_diff
import pynma
P = pynma.PyNMA('')
def parse(name, url, xpath, url_base=''):
tree = html.fromstring(requests.get(url).content)
@ntnn
ntnn / keybase.md
Last active August 29, 2015 14:19

Keybase proof

I hereby claim:

  • I am ntnn on github.
  • I am ntnn (https://keybase.io/ntnn) on keybase.
  • I have a public key whose fingerprint is D331 7631 C468 F45E C362 A9EA 4E75 BB50 168A 0A76

To claim this, I am signing this object:

#vim: set ft=zsh
vim-skip-forward() {
CURSOR=$(($CURSOR + ($#RBUFFER/2)))
}
vim-skip-backward() {
CURSOR=$(($CURSOR - (($#LBUFFER/2)+1)))
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Whoops! There was an error.</title>
<style>.cf:before, .cf:after {content: " ";display: table;} .cf:after {clear: both;} .cf {*zoom: 1;}
body {
font: 14px helvetica, arial, sans-serif;
color: #2B2B2B;