Skip to content

Instantly share code, notes, and snippets.

View random-person-001's full-sized avatar

random-person-001

  • null
  • Virgo Supercluster
View GitHub Profile
@random-person-001
random-person-001 / CharacterArt.java
Last active May 20, 2016 16:00
Various character arts we may use.
String cloud1
= " ____ _-_ "
+ " __ _/ \\_/ \\_ "
+ " / \\_/ __- \\ "
+ " |________/_____________|";
String cloud2
= " ____ ___ "
+ " __ _*####*_*###*_ "
+ " *##*_*#### *#########* "
+ " *########*#############*";
/**
* 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);
@random-person-001
random-person-001 / flickr-crawler.py
Created January 31, 2016 04:59
A python script to download a picture from flickr.com/explore. If you run linux, it'll set it as your desktop background.
#!/usr/bin/env python
import random
import urllib
import urllib2
VERBOSE = False
def downloadRandomFlickrImage ():
"""
Example URLs around Flickr:
@random-person-001
random-person-001 / .conkyrc
Created December 21, 2015 03:48
random-person-001 stylized conkyrc with date, graph
# 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: