Skip to content

Instantly share code, notes, and snippets.

<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
@nealtz
nealtz / Moves2DayOne.py
Created April 28, 2014 18:36
Moves Data to Day One
# Moves Data to Day One
# This is NOT a nice programmed working script. It is some code I created
# with the iOS Pythonista App to get data from the Moves App into the Day One App.
# You need to get a Moves Api token before you can use this script
import requests, json, datetime
def MovesHistory(callDate):
print 'callDate is ', callDate
@nealtz
nealtz / TNG_Redirect_Example.py
Last active August 29, 2015 13:57
Redirect Telefonnumbers via TNG.de
# -*- coding: utf-8 -*-
# Check and change redirection status of a telefon number via the
# website of my telephone network service provider TNG.de
# Python Script for iOS Pythonista App (Vers. 1.4)
from bs4 import BeautifulSoup
import requests, console, re, sys, time, exceptions
try:
@nealtz
nealtz / mail2pdfandprint.scpt
Created March 2, 2014 21:09
Apple Mail App: Save and print attachment or email
-- Apple Mail: Save selected E-Mail attachment and print it
-- Created by Boy Nils Schulte am Hülse: nsah.de (02.03.2014)
-- Based on "Save Mail as PDF and it's attachments to folder" Created by hubionmac (29.09.2010): http://hubionmac.com/wordpress/archives/2087
global frontmost_message_viewer
--this is the posix (unix) path of the folder you would like to store the messages in
set mymailboxpath to (path to documents folder) & "Buchfuehrung:2013 Buchfuehrung:2013 Kreditoren NSAH:" as text
set loopCounter to 0
tell application "Mail"
set myselection to my check_message_viewer_and_return_selection()
repeat with currentMail in myselection
@nealtz
nealtz / 0_reuse_code.js
Created February 28, 2014 18:58
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console