This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PyQt4.QtGui import * | |
| from PyKDE4.marble import * | |
| import sys | |
| def main(): | |
| # Initialize QApplication | |
| app = QApplication(sys.argv) | |
| # Create a Marble QWidget | |
| m = Marble.MarbleWidget() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # xkcd.py | |
| # | |
| # Copyright 2012 Benjamin Kaiser <benkaiser@benkaiser> | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 2 of the License, or | |
| # (at your option) any later version. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Just add the following lines to your i3 config file | |
| # dynamic tagging feature | |
| bindsym $mod+t exec ~/.i3/get_workspace_options.py | dmenu -b | ~/.i3/go_to_workspace.py | |
| bindsym $mod+Shift+t exec ~/.i3/get_workspace_options.py | dmenu -b | ~/.i3/move_to_workspace.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Conky, a system monitor, based on torsmo | |
| # | |
| # Any original torsmo code is licensed under the BSD license | |
| # | |
| # All code written since the fork of torsmo is licensed under the GPL | |
| # | |
| # Please see COPYING for details | |
| # | |
| # Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen | |
| # Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * * * * * DISPLAY=:0 /usr/bin/bash /home/benkaiser/.i3/update_background |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find -type f | xargs du --block-size=1K | sort -rn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'editor': | |
| 'fontSize': 16 | |
| 'showInvisibles': true | |
| 'showIndentGuide': true | |
| 'invisibles': | |
| 'cr': 'EW! CR!' | |
| 'tab': 'TAB?' | |
| 'eol': '' | |
| 'core': | |
| 'themes': [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var ffmpeg = require("fluent-ffmpeg"); | |
| var taglib = require("taglib"); | |
| var ytdl = require("ytdl"); | |
| var fs = require("fs"); | |
| var url = 'http://www.youtube.com/watch?v=gXK5YpoadCU'; | |
| var title = ""; | |
| var authot = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "stdio.h" | |
| #include <stdlib.h> | |
| typedef struct Item Item; | |
| struct Item { | |
| int value; | |
| Item* next; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // sort the list in order O(n^n^n) | |
| function jumblesort(list){ | |
| while(!sorted(list)){ | |
| list = shuffle(list); | |
| } | |
| return list; | |
| } | |
| function shuffle(list) { | |
| for(var i = list.length - 1; i > 0; i--) { |