Skip to content

Instantly share code, notes, and snippets.

View ff6347's full-sized avatar
🤖
updating status…

Fabian Morón Zirfas ff6347

🤖
updating status…
View GitHub Profile
#!/usr/bin/env ruby
# Input: WordPress XML export file.
# Outputs: a series of Textile files ready to be included in a Jekyll site,
# and comments.yml which contains all approved comments with metadata which
# can be used for a Disqus import.
# Changes from the original gist: http://gist.github.com/268428
# 1. Handles titles containing special characters. Those have to be YAML escaped
# 2. Use the original permalinks in wordpress.
@ff6347
ff6347 / generate_archives.rb
Created July 18, 2011 14:45 — forked from stympy/generate_archives.rb
Archive generator plugin for jekyll
# Jekyll archive page generator with pagination.
#
# Based on the category generator from
# http://recursive-design.com/projects/jekyll-plugins/,
# which is copyright (c) 2010 Dave Perrett,
# http://recursive-design.com/ and is licensed under the MIT
# license (http://www.opensource.org/licenses/mit-license.php), and
# on the pagination code from Jekyll itself.
#
# This code is copyright (c) 2011 Benjamin Curtis, and is licensed
@ff6347
ff6347 / osm2geo.js
Created April 15, 2012 17:04 — forked from tecoholic/osm2geo.js
OSM2GEO - A JS Converter to convert OSM to GeoJSON
/**************************************************************************
* OSM2GEO - OSM to GeoJSON converter
* OSM to GeoJSON converter takes in a .osm XML file as input and produces
* corresponding GeoJSON object.
*
* AUTHOR: P.Arunmozhi <aruntheguy@gmail.com>
* DATE : 26 / Nov / 2011
* LICENSE : WTFPL - Do What The Fuck You Want To Public License
* LICENSE URL: http://sam.zoy.org/wtfpl/
*
@ff6347
ff6347 / anchorsToObj.jsx creating obj files from adobe illustrator for Trapcode Form (FIXED)
main();
function main(){
var list = new Array();
var doc = app.activeDocument;
var str = "";
var coords = new Array();
var ab = doc.artboards[0];
// ab.rulerOrigin = [0 , 0];
@ff6347
ff6347 / jekyll_setup.sh
Created September 24, 2012 12:40
setup jekyll layout from shell
#!/bin/sh
# create a jekyll layout for starters
mkdir newWebsite
mkdir newWebsite/_layouts
mkdir newWebsite/_posts
mkdir newWebsite/_includes
mkdir newWebsite/_plugins
#the ignore folder needs to be added
#to the "exclude:" of the _config.yml
mkdir newWebsite/ignore
@ff6347
ff6347 / load_txtfile.jsx
Created October 4, 2012 18:32
Load Text file and show in alert()
var txtfile = File.openDialog ("Choose a textfile for filling", "*.txt", false);
// It works like this.
// test if txtfile is not null
if(txtfile != null){
txtfile.open("r");
content = txtfile.read();
txtfile.close();
say -f inputTextfile.txt -o outputSoundfile.aiff
@ff6347
ff6347 / ConvertToUnicodeNumber.py
Created October 8, 2012 15:53
Converting Characters from one textfile into Unicode Numbers saving them in another file
# -*- coding: utf-8 -*-
import unicodedata
gl = open('GlyphList.txt')
string = str(gl.read())
string = unicode(string, 'utf-8')
gl.close()
glyphs = string.split()
@ff6347
ff6347 / myRPG.jsx
Created October 13, 2012 12:50 — forked from AnitaMei/myRPG.jsx
MyScript for the Projektwochen 2012/2013 at FH Potsdam
//myRPG.jsx
//An InDesign CS5 JavaScript
/*
October 2010
*/
// This is the first start of a script for a simple computer role-playing game.
// The users task is it to find its way from home to the university campus.
// While travelling the user has to answer questions which are effecting its destiny.
// Going through the questions step by step the InDesign document builds up a text frame describing the user's journey.
// An infographic on the buttom of the document will show the user's journey.
@ff6347
ff6347 / uninstall-node.sh
Created October 20, 2012 10:04 — forked from omarrr/uninstall-node.sh
Mac OS X uninstall script for packaged install of node.js
#!/bin/sh
(( ${#} > 0 )) || {
echo 'DISCLAIMER: USE THIS SCRIPT AT YOUR OWN RISK!'
echo 'THE AUTHOR TAKES NO RESPONSIBILITY FOR THE RESULTS OF THIS SCRIPT.'
echo "Disclaimer aside, this worked for the author, for what that's worth."
echo 'Press Control-C to quit now.'
read
echo 'Re-running the script with sudo.'
echo 'You may be prompted for a password.'
sudo ${0} sudo