Skip to content

Instantly share code, notes, and snippets.

@jedsundwall
jedsundwall / gist:586142
Created September 18, 2010 22:56
displays tumblr tags as an unordered list
{block:HasTags}
<ul class="tags">
{block:Tags}
<li>
<a href="{TagURL}">{Tag}</a>
</li>
{/block:Tags}
</ul>
{/block:HasTags}
@jedsundwall
jedsundwall / gist:586144
Created September 18, 2010 23:00
CSS to add commas to items in an unordered list without leaving a comma hanging at the end of the list
ul.tags {
display: inline;
margin: 0;
padding: 0;
}
ul.tags li {
display: inline;
list-style: none;
margin: 0;
<div id="dickbar" style="width:100%; position:absolute; top:0px; background-color:#999; color:#FFF; font-weight:bold;"><blink>#CHARLIESHEENLOL</blink></div>
@jedsundwall
jedsundwall / flaciddickbar.html
Created March 7, 2011 00:39
I don't know how to write javascript or anything like that, but I wanted to try to make my own #dickbar (http://encodedrecords.com/dickbar/). This is what I came up with.
<div id="dickbar" style="width:100%; position:absolute; top:0px; background-color: rgba(0,0,0,0.2); color:#FFF; font-weight:bold; font-size:5em; margin:0; padding:0;">
<blink>#CHARLIESHEENLOL</blink>
</div>
@jedsundwall
jedsundwall / delicioussearch.html
Created March 9, 2011 19:48
Trying to make a custom search box for flashlight.opensandiego.org
<form method="get" action="http://www.delicious.com/search">
<input type="hidden" name="context" value="userposts|opensandiegodata" />
<label for="query-field">Enter Search Term(s): </label>
<input type="text" name="query" id="query-field"/>
<input type="submit" value="Search" />
</form>
{
"status_code": 200, "data": {
"url": "http://facebook.com/usagov" "outlet": "facebook" "username": "usagov" "email_address": "jed.sundwall@gsa.gov" "tags": "us government, firstgov, first gov, u.s. government,
america, usa, usgov, us gov, government forms, government auctions, portal, government jobs, government benefits, us, united states, government, information, federal, state, local, tribal, usa, services, home"
"categories": "federal, website, general services administration, national"
} "status_txt": "ok. an email has been sent to [user’s email address]
with a link to confirm this registration." }
@jedsundwall
jedsundwall / 06052011.json
Created July 6, 2011 21:51
Example 1.USA.gov daily click data
[
{
"u": "http://www.nasa.gov/connect/chat/bolden_chat.html",
"title": "NASA - NASA Chat: Administrator Bolden Answers Questions About NASA's Future",
"global_clicks": "1318",
"agency": "nasa.gov",
"global_hash": "lMyZx3"
},
{
"u": "http://www.fbi.gov/wanted/unknown/unknown-serial-bank-robber-2/view",
@jedsundwall
jedsundwall / 06052011.csv
Created July 6, 2011 21:52
Example 1.USA.gov daily click data in CSV
Long URL Page Title Clicks Agency Domain Global hash
http://www.nasa.gov/connect/chat/bolden_chat.html NASA - NASA Chat: Administrator Bolden Answers Questions About NASA's Future 1318 nasa.gov lMyZx3
http://www.fbi.gov/wanted/unknown/unknown-serial-bank-robber-2/view FBI — UNKNOWN SERIAL BANK ROBBER 1137 fbi.gov l4J8da
http://www.nasa.gov/connect/chat/bolden_chat.html NASA - NASA Chat: Administrator Bolden Answers Questions About NASA's Future 895 nasa.gov iyL5no
http://www.niehs.nih.gov/health/assets/docs_a_e/climatereport2010.pdf 695 nih.gov lfbBif
http://www.fda.gov/NewsEvents/Newsroom/PressAnnouncements/ucm261839.htm 502 fda.gov jAaEIi
http://www.shrewsbury-ma.gov/egov/gallery/134127368672998.png 496 shrewsbury-ma.gov 9b6kNl
http://www.shrewsbury-ma.gov/egov/gallery/134127368675393.png 494 shrewsbury-ma.gov axNK8c
http://www.ncbi.nlm.nih.gov/pubmed/21719068?dopt=Abstract Ecogeographic variation in Neandertal dietary habi... [J Hum Evol. 2011] - PubMed result 439 nih.gov kL2K8l
@jedsundwall
jedsundwall / gist:2244379
Created March 29, 2012 22:26
hacking google spreadhseets
function makeURL(firstname,lastname) {
var name = "firstname + lastname";
if (name = null) {
return null
};
else return name;
}
@jedsundwall
jedsundwall / gist:2244395
Created March 29, 2012 22:29 — forked from tantalor/gist:2244383
hacking google spreadhseets
function makeURL(firstname,lastname) {
var name = firstname + lastname;
if (!name) {
return null;
} else {
return "http://vivemejor.com/blahblah?this&that"+name;
}
}