Skip to content

Instantly share code, notes, and snippets.

Jeena Paradies jeena

Block or report user

Report or block jeena

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:ac4684f337a5fd1dce8c862397529fe9
➜ jeena@jugulator t (master✗) ./mf2.rb https://commentpara.de/comment/43.htm
{
"items": [
{
"type": [
"h-entry"
],
"properties": {
"author": [
{
View id3-test.go
package main
import "github.com/mikkyang/id3-go"
import "log"
import "strings"
func main() {
a, err := id3.Open("/tmp/music/01 Completement fou.mp3")
name1 := strings.TrimSpace(a.Artist())
if err != nil {
View NextCoDMap.scpt
-- A script to select the next random Call of Duty map
repeat with usermap in shuffle(getMaps())
display dialog "Next map: " & usermap giving up after 3600 * 10
nextMap(usermap)
end repeat
on split(theString, theDelimiter)
set oldDelimiters to AppleScript's text item delimiters
set AppleScript's text item delimiters to theDelimiter
@jeena
jeena / nextMap.py
Last active Mar 12, 2016
A script to copy the next random Call of Duty map into the c&p buffer.
View nextMap.py
#!/usr/bin/env python3
# A script to copy the next random Call of Duty map into the c&p buffer.
import os
import random
def is_map(str):
return str.startswith("mp_")
@jeena
jeena / fosdem-speakers.txt
Created Jan 30, 2016
I am trying to find our how many men vc. woman and whites vs. people of color are speakers at FOSDEM. There seems not to be a way to find the gender or skin color from the speakers page on the website so I am trying to find pictures or videos via Google. I need help to do that, please fork it and add more info. When we have everyone I will creat…
View fosdem-speakers.txt
# m male
# f female
# c caucasian
# i indian
# a asian
mc Dieter Adriaenssens
mc Rodrigo Agerri
mc Carsten Agger
mi Hemant Agrawal
View gist:4e4fcc513f7ca2ae4382
function gross() {
document.getElementById("bild").width++;
if (document.getElementById("bild")["width"] < 100) {
setTimeout("gross()", 6);
}
}
function klein() {
document.getElementById("bild").width--;
if (document.getElementById("bild")["width"] > 30)
View no-retweet.rb
#!/usr/bin/env ruby -wU
#
# This script uses the command line twitter client https://github.com/twitter/twurl
# You have to authorize Twurl one time before you can use ist, please read the
# README for Twurl which describes how to do it.
# What it basically does is it sets the flag that you don't want to see
# any retweets of any users at all.
require 'json'
View gist:8afbbe981c804bf4947e
#!/usr/bin/env ruby
(1..20).each do |i|
if i % 3 == 0 && i % 5 == 0
puts "FizzBuzz"
elsif i % 3 == 0
puts "Fizz"
elsif i % 5 == 0
puts "Buzz"
else
View Un-break my build
Melody: Un-break my heart (Toni Braxton / Diane Warren)
Text by: Tobias Olausson
Don't leave before it compiles
Don't code in any weird styles
Come back and patch all this code
Come and take errors awaaaay
I need your patch, to run this joint
Upstream is so behiiiiiind
View gist:e9126b360c48e498cb23
<% unless @exif.gps.blank? %>
<p class="map">
<% img_url = "http://staticmap.openstreetmap.de/staticmap.php?center=" + @exif.gps.latitude.to_s + "," + @exif.gps.longitude.to_s + "&zoom=7&size=640x480&markers=" + @exif.gps.latitude.to_s + "," + @exif.gps.longitude.to_s + ",red-pushpin" %>
<% map_url = "http://www.openstreetmap.org/?mlat=" + @exif.gps.latitude.to_s + "&mlon=" + @exif.gps.longitude.to_s + "&zoom=12";%>
<%= link_to(image_tag(mapimage_path(img_url)), map_url) %>
</p>
<% end %>
You can’t perform that action at this time.