Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jeena on github.
  • I am jeena (https://keybase.io/jeena) on keybase.
  • I have a public key whose fingerprint is AC45 211F C254 EC42 F04E 3291 64C6 D176 70AC ABA1

To claim this, I am signing this object:

function fish_prompt
if not set -q -g __fish_robbyrussell_functions_defined
set -g __fish_robbyrussell_functions_defined
function _git_branch_name
echo (git symbolic-ref HEAD ^/dev/null | sed -e 's|^refs/heads/||')
end
function _is_git_dirty
echo (git status -s --ignore-submodules=dirty ^/dev/null)
#!/usr/bin/env ruby -wU
#
# This script uses the command line twitter client https://github.com/twitter/twurl
# You have to authorize Twurl one time before you can use ist, please read the
# README for Twurl which describes how to do it.
# What it basically does is it sets the flag that you don't want to see
# any retweets of any users at all.
require 'json'
<% unless @exif.gps.blank? %>
<p class="map">
<% img_url = "http://staticmap.openstreetmap.de/staticmap.php?center=" + @exif.gps.latitude.to_s + "," + @exif.gps.longitude.to_s + "&zoom=7&size=640x480&markers=" + @exif.gps.latitude.to_s + "," + @exif.gps.longitude.to_s + ",red-pushpin" %>
<% map_url = "http://www.openstreetmap.org/?mlat=" + @exif.gps.latitude.to_s + "&mlon=" + @exif.gps.longitude.to_s + "&zoom=12";%>
<%= link_to(image_tag(mapimage_path(img_url)), map_url) %>
</p>
<% end %>
Melody: Un-break my heart (Toni Braxton / Diane Warren)
Text by: Tobias Olausson
Don't leave before it compiles
Don't code in any weird styles
Come back and patch all this code
Come and take errors awaaaay
I need your patch, to run this joint
Upstream is so behiiiiiind
#!/usr/bin/env ruby
(1..20).each do |i|
if i % 3 == 0 && i % 5 == 0
puts "FizzBuzz"
elsif i % 3 == 0
puts "Fizz"
elsif i % 5 == 0
puts "Buzz"
else
#!/usr/bin/env ruby -wU
#
# This script uses the command line twitter client https://github.com/twitter/twurl
# You have to authorize Twurl one time before you can use ist, please read the
# README for Twurl which describes how to do it.
# What it basically does is it sets the flag that you don't want to see
# any retweets of any users at all.
require 'json'
function gross() {
document.getElementById("bild").width++;
if (document.getElementById("bild")["width"] < 100) {
setTimeout("gross()", 6);
}
}
function klein() {
document.getElementById("bild").width--;
if (document.getElementById("bild")["width"] > 30)
- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString {
NSLog(@"test");
return NO;
}
#import "RootViewController.h"
#pragma mark Table view methods
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
// Customize the number of rows in the table view.