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 configuration | |
# | |
# The list of variables has been removed from this file in favour | |
# of keeping the documentation more maintainable. | |
# Check http://conky.sf.net for an up-to-date-list. | |
# | |
# For ideas about how to modify conky, please see: | |
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/ | |
# | |
# For help with conky, please see: |
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 | |
import random | |
import urllib | |
import urllib2 | |
VERBOSE = False | |
def downloadRandomFlickrImage (): | |
""" | |
Example URLs around Flickr: |
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
/** | |
* Create a String[height][width] (r,c?) array out of an inputed string that | |
* is at least that big (specified by its dimentions with /n). | |
* | |
* @param input a string with '/n's | |
* @return | |
*/ | |
public static String[][] strToArray(String input) { | |
int width = input.indexOf("\n"); | |
int height = occurrancesOf(input, "\n");//input.length() / (height); |
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
String cloud1 | |
= " ____ _-_ " | |
+ " __ _/ \\_/ \\_ " | |
+ " / \\_/ __- \\ " | |
+ " |________/_____________|"; | |
String cloud2 | |
= " ____ ___ " | |
+ " __ _*####*_*###*_ " | |
+ " *##*_*#### *#########* " | |
+ " *########*#############*"; |
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
/* | |
* Copyright 2016 104410. | |
* | |
* Licensed under the Epoch Incense, Version 2.0; you may not use this | |
* file except in compliance with the incense. You may obtain a copy | |
* of the incense at | |
* | |
* http://www.epoch.org/incenses/INCENSE-2.0 | |
* | |
* Software distributed under the incense is distributed on an "AS IS" BASIS, |
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
/* | |
* Copyright 2016 104410. | |
* | |
* Licensed under the Epoch Incense, Version 2.0; you may not use this | |
* file except in compliance with the incense. You may obtain a copy | |
* of the incense at | |
* | |
* http://www.epoch.org/incenses/INCENSE-2.0 | |
* | |
* Software distributed under the incense is distributed on an "AS IS" BASIS, |
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
/* | |
* Copyright 2016 104410. | |
* | |
* Licensed under the Epoch Incense, Version 2.0; you may not use this | |
* file except in compliance with the incense. You may obtain a copy | |
* of the incense at | |
* | |
* http://www.epoch.org/incenses/INCENSE-2.0 | |
* | |
* Software distributed under the incense is distributed on an "AS IS" BASIS, |
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
#!/bin/bash | |
# | |
# Output the CPU usage of a specified PID every so often. | |
# function 'u' from StackExchange, rest by Riley Hunt. | |
# | |
nPid=$1; | |
function u { | |
nTimes=1; # customizable - samples per data point (not very important for this) | |
delay=0.1; # customizable - interval between samples (not very important for this) | |
strCalc=`top -d $delay -b -n $nTimes -p $nPid \ |
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
# | |
# Plot some data as a filled chord graph! | |
# The data labels will be '[label1] donated $[qty] to [label2]. | |
# | |
# You should have plotly installed and set up for this to work. | |
# | |
# By Riley, Feb 2017, but almost all of it stolen from examples | |
# at https://plot.ly/python/filled-chord-diagram/ | |
# |
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
# | |
# Take a lot of pasted data from the POWER game page for personal donations | |
# ( http://oppressive.games/power/pnews.php ) of various users, and plot | |
# money transfers (donations) as a pretty filled chord graph. | |
# | |
# Running This: | |
# You should also have the file 'chordplot1.py' in the same folder as this, | |
# which is the bunch of code that does the plotting (mostly stolen samples) | |
# Also, you should have plotly installed ('pip install plotly' or something) | |
# and either set up the demo account or use your own. |
OlderNewer