Skip to content

Instantly share code, notes, and snippets.

View floriandotpy's full-sized avatar

Florian D. floriandotpy

View GitHub Profile
@floriandotpy
floriandotpy / jsunconf-lightning-talks
Last active August 29, 2015 14:00
Notes taken during lighning talk session at JSunconf 2014
Lightning talks
===
# Grunt
- separate configuration files
- grunt task on git commit to run tests before push
# Start contributing to open source (robert + klaus)
- look at new admin interface at couchDB, they use AMD and backbone
- dont be scared by erlang. it's a nice and small language
@floriandotpy
floriandotpy / Spacegray.sublime-theme
Last active August 29, 2015 14:23
Sublime Text for Presentations and Screencasts
[
{
"class": "sidebar_label",
"color": [130, 130, 130],
"font.bold": false,
"font.size": 16
},
{
"class": "sidebar_tree",
"row_padding": [10,10],
@floriandotpy
floriandotpy / migrate.sql
Created July 28, 2015 09:48
Wordpress migrate queries
UPDATE wp_options SET option_value = replace(option_value, 'http://localhost/wordpress', 'http://mydomain.com') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://localhost/wordpress','http://mydomain.com');
UPDATE wp_posts SET post_content = replace(post_content, 'http://localhost/wordpress', 'http://mydomain.com');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://localhost/wordpress','http://mydomain.com');
title : Home
layout: blog/index
===
<!-- Find blog folders 2010, 2011, ... -->
<?php $years = $page->children()->filter(function($p) { return preg_match("/^\d{4}$/", $p->slug()); }); ?>
<!-- Go through all blog folders, collect articles in one single array -->
## Tweets (3900 Tweets, Deutsch + Englisch gemischt):
I't vich. Uner uns das incWefenks Geaf, hahr "F3�I
Pracke. Flord my aun. Is geicht feuch softrunk Das the e. Fore that ank.
Droumme iect is dion muchcigut wor 3 ontther.
Jemet einzigetce ok, kilt spatiok nel taichn mon that. :) De eut. :)
Oh, min aden sood som oo -Schor the wersed. Abe
## Nanowrimo (50000 Worte, Deutsch):
# packages in environment at /Users/flo/anaconda:
#
alabaster 0.7.7 py27_0
anaconda-client 1.4.0 py27_0
anaconda custom py27_0
anaconda-navigator 1.1.0 py27_0
appnope 0.1.0 py27_0
appscript 1.0.1 py27_0
argcomplete 1.0.0 py27_1
astropy 1.0.4 np19py27_0
~ conda install -c https://conda.anaconda.org/groakat videotagger
Fetching package metadata .........
Solving package specifications: ..........
Package plan for installation in environment /Users/flo/anaconda:
The following packages will be downloaded:
package | build
---------------------------|-----------------
➜ videotagger .
[]
Traceback (most recent call last):
File "/Users/flo/anaconda/lib/python2.7/site-packages/pyTools/gui/setupDialog.py", line 890, in launchVideoTagger
self.videoTagger.submitForm()
File "/Users/flo/anaconda/lib/python2.7/site-packages/pyTools/videoTagger/videoTagger.py", line 740, in submitForm
maxAnnotationSpeed=self.maxAnnotationSpeed
File "/Users/flo/anaconda/lib/python2.7/site-packages/pyTools/videoTagger/videoTagger.py", line 321, in init
currentROI=currentROI)
File "/Users/flo/anaconda/lib/python2.7/site-packages/pyTools/misc/config.py", line 58, in call
/*!
* vue-intl v0.2.1
* Released under the MIT License.
*/
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
@floriandotpy
floriandotpy / article.html
Last active August 26, 2016 08:21
Some CSS for previewing articles locally
<!doctype html>
<html>
<!-- Some CSS. Prettier when writing local articles in HTML files. Mac fonts only. -->
<style>
body { font: 18px/180% Avenir; color: #333; max-width: 800px; margin: 0 auto; padding: 0 4px; }
h1, h2 { font-family: Didot; color: #000; }
h1 { margin: 72px 0 24px; }
h2 { margin: 48px 0 12px; }
a { color: #0000cc; }
a:hover { color: #0066ff; }