Skip to content

Instantly share code, notes, and snippets.

You are an elite men’s image consultant, barber, grooming expert, photographer, stylist, and fitness coach.
Analyze my photo objectively and give me a brutally honest assessment of how to improve my appearance. Do not protect my feelings. Focus on maximizing attractiveness, professionalism, health, confidence, and presence.
Create a report in the exact format below:
OVERALL SCORE
Rate me from 1-10 in the following categories:

Keybase proof

I hereby claim:

  • I am chromeragnarok on github.
  • I am sidkusnanto (https://keybase.io/sidkusnanto) on keybase.
  • I have a public key ASA-m-YJSX8KItGT6XUZOXpVkLrHo5dbHntas4WC1BqczAo

To claim this, I am signing this object:

// JS Stuffs here
$("#add-new").droppable({
accept: ".draggable-stuffs",
drop: handleDrop
});
function handleAddNewDrop(event, ui) {
// do stuffs with your event and ui params... or not.
}
// JS Stuffs here
$("#add-new").droppable({
accept: ".draggable-stuffs",
drop: handleDrop
}).tipsy({title: 'data-tooltip'});
# some web steps to be called on your cukes...
class Api::ApiController < ApplicationController
def authenticate_with_token
if user = authenticate_with_http_token { |t, o|
User.authenticate(t, o)
}
@current_user = user
else
request_http_token_authentication
end
@chromeragnarok
chromeragnarok / userstream_oauth_example.rb
Created March 8, 2011 09:11
An example on how to use em-http-request to access Twitter's User Stream API
require 'rubygems'
require 'eventmachine'
require 'em-http-request'
require 'oauth/helper'
require 'oauth/signature/hmac/sha1'
require 'uri'
module TwitterDemo
STREAM_URL = "https://userstream.twitter.com/2/user.json"
CONSUMER_KEY = ""
@chromeragnarok
chromeragnarok / gist:848849
Created March 1, 2011 08:51
a bit of the recursive function for paging. caution, this is not the full code.
function generatePaging(fetchSize:Number=128):void
{
var buffer:Array = new Array();
var i:Number = 0;
while (i < fetchSize && wordIndex + i < textArray.length)
{
var word:String = textArray[wordIndex + i];
buffer.push(word);
i++;
var pageContainer6Loader:Loader = new Loader();
if (pageContainer6.numChildren != 0)
{
var k6:int = pageContainer6.numChildren;
while ( k6 -- )
{
pageContainer6.removeChildAt( k6 );
}
}
[SWF] footprint/footprint.swf - 343,217 bytes after decompression
[SWF] footprint/footprint.swf/[[DYNAMIC]]/8 - 1,314,527 bytes after decompression
[SWF] footprint/footprint.swf/[[DYNAMIC]]/9 - 202,168 bytes after decompression
[SWF] footprint/footprint.swf/[[DYNAMIC]]/10 - 323,748 bytes after decompression
[SWF] footprint/footprint.swf/[[DYNAMIC]]/11 - 261,592 bytes after decompression
[SWF] footprint/footprint.swf/[[DYNAMIC]]/12 - 797,233 bytes after decompression
[SWF] footprint/footprint.swf/[[DYNAMIC]]/13 - 194,680 bytes after decompression
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- sidkay-em-http-request (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require'
from twitter_demo_alternate.rb:3:in `<main>'