Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
# input : a Xournal file as XML (uncompressed)
import humanize
import xml.etree.ElementTree as ET
import sys
def width_count_to_size(widths_count):
# double is 64-bit
return widths_count*8
diff --git a/src/lib/ffmpeg-4.0/avcodec.pas b/src/lib/ffmpeg-4.0/avcodec.pas
index e717744d..cef8b16e 100644
--- a/src/lib/ffmpeg-4.0/avcodec.pas
+++ b/src/lib/ffmpeg-4.0/avcodec.pas
@@ -84,7 +84,7 @@ const
(* Supported version by this header *)
LIBAVCODEC_MAX_VERSION_MAJOR = 58;
- LIBAVCODEC_MAX_VERSION_MINOR = 35;
+ LIBAVCODEC_MAX_VERSION_MINOR = 54;
02-13 14:20:12.307 1318 1318 W PackageManager: Not granting permission android.permission.BROADCAST_WAP_PUSH to package org.thoughtcrime.securesms (protectionLevel=2 flags=0x38583e44)
02-13 14:20:12.307 1318 1318 W PackageManager: Not granting permission android.permission.READ_CONTACTS to package org.thoughtcrime.securesms because it was previously installed without
02-13 14:20:12.307 1318 1318 W PackageManager: Not granting permission android.permission.WRITE_CONTACTS to package org.thoughtcrime.securesms because it was previously installed without
02-13 14:20:12.307 1318 1318 W PackageManager: Not granting permission android.permission.RECEIVE_SMS to package org.thoughtcrime.securesms because it was previously installed without
02-13 14:20:12.307 1318 1318 W PackageManager: Not granting permission android.permission.RECEIVE_MMS to package org.thoughtcrime.securesms because it was previously installed without
02-13 14:20:12.307 1318 1318 W PackageManager: Not granting permission android.permissi
02-08 10:30:01.336 1353 1353 W PackageManager: Not granting permission android.permission.BROADCAST_WAP_PUSH to package org.thoughtcrime.securesms (protectionLevel=2 flags=0x38583e44)
02-08 10:30:01.336 1353 1353 W PackageManager: Not granting permission android.permission.READ_CONTACTS to package org.thoughtcrime.securesms because it was previously installed without
02-08 10:30:01.336 1353 1353 W PackageManager: Not granting permission android.permission.WRITE_CONTACTS to package org.thoughtcrime.securesms because it was previously installed without
02-08 10:30:01.336 1353 1353 W PackageManager: Not granting permission android.permission.RECEIVE_SMS to package org.thoughtcrime.securesms because it was previously installed without
02-08 10:30:01.336 1353 1353 W PackageManager: Not granting permission android.permission.RECEIVE_MMS to package org.thoughtcrime.securesms because it was previously installed without
02-08 10:30:01.336 1353 1353 W PackageManager: Not granting permission android.permissi
python3.3 configure.py
Querying qmake about your Qt installation...
Determining the details of your Qt installation...
This is the GPL version of PyQt 5.2 (licensed under the GNU General Public
License) for Python 3.3.2+ on linux.
Type 'L' to view the license.
Type 'yes' to accept the terms of the license.
Type 'no' to decline the terms of the license.
cd qpy/ && ( test -e Makefile || /opt/qt5.1.1/5.2.0/gcc_64/bin/qmake /opt/PyQt/PyQt-gpl-5.2/qpy/qpy.pro -o Makefile ) && make -f Makefile install
make[1]: Betrete Verzeichnis '/opt/PyQt/PyQt-gpl-5.2/qpy'
cd QtCore/ && ( test -e Makefile || /opt/qt5.1.1/5.2.0/gcc_64/bin/qmake /opt/PyQt/PyQt-gpl-5.2/qpy/QtCore/QtCore.pro -o Makefile ) && make -f Makefile install
make[2]: Betrete Verzeichnis '/opt/PyQt/PyQt-gpl-5.2/qpy/QtCore'
make[2]: Für das Ziel »install« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/opt/PyQt/PyQt-gpl-5.2/qpy/QtCore'
cd QtGui/ && ( test -e Makefile || /opt/qt5.1.1/5.2.0/gcc_64/bin/qmake /opt/PyQt/PyQt-gpl-5.2/qpy/QtGui/QtGui.pro -o Makefile ) && make -f Makefile install
make[2]: Betrete Verzeichnis '/opt/PyQt/PyQt-gpl-5.2/qpy/QtGui'
make[2]: Für das Ziel »install« ist nichts zu tun.
make[2]: Verlasse Verzeichnis '/opt/PyQt/PyQt-gpl-5.2/qpy/QtGui'
@Mitmischer
Mitmischer / gist:5852217
Last active December 18, 2015 22:09
Go zersetzt mein Gehirn!
package main
import "fmt"
// works
func main(){
c := make(chan int)
go func(c chan int){
fmt.Println(<-c)
}(c)
go func(){
#include <iostream>
#include <string>
#include <locale>
using namespace std;
int main()
{
locale loc;
string t;
@Mitmischer
Mitmischer / gist:4245787
Created December 9, 2012 16:01
Ant-Client
class Client{
public:
bool sendMessage(std::string msg);
vector<Ant*> getAnts();
vector<Ant*> updateAnts(); // = setAnts()
private:
vector<Ant*> ants;
}
import urllib.request
def getSolutionFor(i):
f = urllib.request.urlopen('http://www.entwickler-ecke.de/files/eeags2012paranuss.php?q=' + str(i))
s = str(f.read())
return s.split('\'')[1]
def saveSolutionsToFile(lowerBound, upperBound, fileName):
pass