Skip to content

Instantly share code, notes, and snippets.

@Michcioperz
Michcioperz / gist:5658906
Created May 27, 2013 20:22
Simple music converting Java thing
import java.io.IOException;
public class Musiconvert {
public static void main(String[] args) {
String ffmpeguri = "J:\\droidqemu\\FFMPEG\\ffmpeg.exe"; //path to FFmpeg goes here
String targetcodec = "libmp3lame"; //target codec goes here
String targetextension = ".mp3"; //target file extension goes here
String[] uris = new String[] {
/* source files paths go here */
};
/**
* Michcioperz's unnecessary complexity
* @author Michcioperz <michcioperz@gmail.com>
*/
public abstract class unless {
public unless(boolean condition) {
if (!condition) {
o();
}
}
@Michcioperz
Michcioperz / Makefile
Last active August 29, 2015 13:55
MichiRun - SL4A Python script that will be purely awesome helper for kids who are bad at running on PE at school, haha
all: arcdist qloc locrot qrot
arcdist:
adb push arcdist.py /storage/sdcard0/sl4a/scripts/
qloc:
adb push qloc.py /storage/sdcard0/sl4a/scripts/
locrot:
adb push locrot.py /storage/sdcard0/sl4a/scripts/
<?xml version="1.0" encoding="utf-8"?>
<literature version="1.0" xmlns="http://purl.oclc.org/net/hoffmann/lml" xmlns:xlink="http://www.w3.org/1999/xlink" xml:lang="en">
<meta>
<title>Ballad of Noahperz</title>
<desc><p>A poetic story of how Team AllHailNoah started and how it's gone now</p></desc>
<genre>ballad</genre>
</meta>
<lyrics xlm:lang="en">
<h>Ballad of Noahperz</h>
<st>
db.db
log.log
@Michcioperz
Michcioperz / index.html
Last active August 29, 2015 13:56
Soon-to-be a presentation for school
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<title>Romowie</title>
</head>
<body>
<div id="impress">
<div class="step slide" data-x="0" data-scale="2" data-y="0" data-z="-100" data-rotate-x="-40" data-rotate-y="10">
$(document).ready(function(){
setInterval(function() {
$("#caret").toggle();
}, 600);
$("#typeMe").typewriter("So, here we are, today is February 14th, and you're talking to a robot. How is your love life?", {'onComplete':function(){}});
});
@Michcioperz
Michcioperz / crontime.py
Created February 19, 2014 15:18
Raspberry Pi time measuring cron thing in Python because that's all I know
#!/usr/bin/env python2
import shutil, time, os
t = 0
def repeatable(t):
shutil.copyfile("/proc/uptime", ("/home/pi/msr/%s" % value(t)))
while 1:
@Michcioperz
Michcioperz / index.html
Created April 13, 2014 16:27
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title> Start | Aleja Gwiazd</title>
<meta name="description" content="Talenty są wszędzie (a przynajmniej tutaj ich pełno)">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="/assets/_global.css">
<link rel="stylesheet" href="assets/index.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/jquery.colorbox/1.4.33/example1/colorbox.min.css">
@Michcioperz
Michcioperz / file.md
Last active August 29, 2015 14:00
Android created Gist

So, I went to IT club, really hoping to meet that cool girl who installed Ubuntu on all PC. I talked to her before and I totally liked her, maybe even had a crush on her.

I even prepared a good topic to start with. Y'know, there was a new Ubuntu release, and since all these Ubuntus are some weird remix based on LTS, they only update to a new LTS, so the new release was an even more valuable topic.

So, I went to IT club and she was there. Topic turned out even better, as there came several boys who wanted to get better Computer Science grades, but they were scared of Linux and demanded that teacher goes with them to the new ComSci classroom with Windows. Teacher let us stay here and went with those guys to the other classroom. So, there was just me and her.

I talked to her a bit about their fear of Linux, she smiled and we talked some other stuff and that Ubuntu thing. And then I, err, well, I asked her if she would want to, err... y'know what a boy like me would tell the girl he likes.

She said no. Someth