Skip to content

Instantly share code, notes, and snippets.

View gist:d9f9563d7c1f8a7d5d69
Es ist 12:30Uhr. Draussen sind es 8 grad. Es regnet nicht äüöäüö
View sjunkieex_fix
[root@lemaker ~]# sjunkieex
/root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:388:in `match': invalid byte sequence in US-ASCII (ArgumentError)
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:388:in `match'
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:388:in `block in add_dtd_reference'
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:388:in `reject!'
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:388:in `add_dtd_reference'
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:364:in `open_xml_file'
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:317:in `parse_file'
from /root/.gem/ruby/2.2.0/gems/sindex-0.2.5/lib/sindex/series_index.rb:25:in `initialize'
from /root/.gem/ruby/2.2.0/gems/sjunkieex-0.1.4/bin/sjunkieex:60:in `new'
@mperlet
mperlet / index.html
Last active Aug 29, 2015
wartN-Vortrag
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>wartN</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
View unrar_all_sj.sh
for s in $(ls *.{part1.rar,part01.rar}); do unrar x -pserienjunkies.org $s; done
@mperlet
mperlet / add_photo_to_flickr_group.js
Created Aug 18, 2015
js:add photo to all your flickr groups. Import first jQuery and open your group list
View add_photo_to_flickr_group.js
$.each($('.album-selection-list').children(),function(index, element){ setTimeout(function(){$(element).click()}, index*1000);});
View index.html
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Westgeld</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Bootstrap -->
<!-- Das neueste kompilierte und minimierte CSS -->
@mperlet
mperlet / c_function_pointer.c
Created Oct 20, 2015
Beispiel für functionpointer in c
View c_function_pointer.c
#include <stdio.h>
#include <math.h>
double f1(double x) {return x*x*x;}
double xq(double x) {return x*x;}
double sin_func(double x) {return sin(x);}
double f(double begin, double end, double pieces, double (*fp)(double))
View c_oop_example.c
#include <stdio.h>
#include <unistd.h>
#include <math.h>
#define L_value 20e-6
#define C_value 50e-12
#define dt 10e-10
#define SLEEP_MS 10
#define U_0 5.0
float glob_f = 0.0;
View cpp_ex4.cpp
#include <stdio.h>
#include <iostream>
#include <unistd.h>
using namespace std;
class programming
{
private:
View cpp_oop_example.cpp
#include <cstdio>
#include <unistd.h>
#include <math.h>
#define L_value 20e-6
#define C_value 50e-12
#define dt 10e-10
#define SLEEP_MS 10
#define U_0 5.0
using std::printf;