Skip to content

Instantly share code, notes, and snippets.

🌭
hotdog

Joseph Chiocchi yyolk

🌭
hotdog
Block or report user

Report or block yyolk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@yyolk
yyolk / summarize.rb
Created Sep 7, 2011 — forked from mat813/summarize.rb
Jekyll filter for summary text between two <!-- CUT --> tags
View summarize.rb
module Jekyll
module Filters
def summarize(str, splitstr = /\s*<div id="extended">/)
str.split(splitstr)[0]
end
end
end
View awk-music.sh
#!/bin/sh
awk 'function wl() {
rate=64000;
return (rate/160)*(0.87055^(int(rand()*10)))};
BEGIN {
srand();
wla=wl();
while(1) {
wlb=wla;
wla=wl();
@yyolk
yyolk / bot.rb
Created Mar 3, 2012
RSS Twitter Bot
View bot.rb
##
## This file is originally from: http://snippets.dzone.com/posts/show/3714 by user `jnewland`
## Instructions by jnewland:
##
## Run this once with the lines uncommented to create the DB, then slap it in your crontab.
##
## That's it!
require 'rubygems'
View quinqunin.html
<!DOCTYPE html>
<html xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Font Test" />
<meta name="author" content="Quinn Keaveney" />
<link rel="stylesheet" type="text/css" href="style.css" media="screen" />
@yyolk
yyolk / README.md
Created Jun 8, 2012 — forked from vanto/README.md
OEmbed Liquid Tag for Jekyll
View README.md

OEmbed Liquid Tag for Jekyll

This is a simple liquid tag that helps to easily embed images, videos or slides from OEmbed enabled providers. It uses Magnus Holm's great oembed gem which connects to the OEmbed endpoint of the link's provider and retrieves the HTML code to embed the content properly (i.e. an in-place YouTube player, Image tag for Flickr, in-place slideshare viewer etc.). By default it supports the following OEmbed providers (but can fallback to Embed.ly or OoEmbed for other providers):

  • Youtube
  • Flickr
  • Viddler
  • Qik
  • Revision3
  • Hulu
  • Vimeo
@yyolk
yyolk / rubycocoa.rb
Created Aug 4, 2012
RubyCocoa homebrew formula
View rubycocoa.rb
require 'formula'
class Rubycocoa <Formula
url 'http://downloads.sourceforge.net/project/rubycocoa/RubyCocoa/1.0.2/RubyCocoa-1.0.2.tar.gz'
homepage 'http://rubycocoa.sourceforge.net/'
md5 'eb6127054b808c2700c6253c8a4793c3'
def keg_only?
:provided_by_osx
end
@yyolk
yyolk / kloutinfinite.js
Created Aug 23, 2012
User script to change the value of your klout score to another useless score.
View kloutinfinite.js
$(function() {$(".value").text(""); } );
@yyolk
yyolk / emojiics.js
Created Aug 23, 2012
Use emojii from http://www.emoji-cheat-sheet.com/ and set it to your klout score. For #SCREENSHOTS
View emojiics.js
$(function() { var emojii = prompt(">"); $(".value").html("<img src='https://raw.github.com/arvida/emoji-cheat-sheet.com/master/public/graphics/emojis/"+emojii.substring(1, emojii.length-1)+".png'>"); });
@yyolk
yyolk / eomjiifbb.js
Created Aug 24, 2012
Emojii on FB bookmarklet
View eomjiifbb.js
javascript:(function(){var emojii = prompt(">"); prompt('',"http://www.emoji-cheat-sheet.com/graphics/emojis/"+emojii.substring(1, emojii.length-1)+".png");})();
@yyolk
yyolk / emojiifbte.sh
Created Aug 25, 2012
Emojii + Facebook + TextExpander
View emojiifbte.sh
#!/bin/bash
export EMOJII="$(echo %clipboard | sed -n -e 's/:\(.*\):/\1/p')"
echo "http://www.emoji-cheat-sheet.com/graphics/emojis/$EMOJII.png"
You can’t perform that action at this time.