Skip to content

Instantly share code, notes, and snippets.

View bitlyfied's full-sized avatar

Valentino Aluigi bitlyfied

View GitHub Profile
<div class='tt-calendar'>
<span class="vevent">
<a class="url" href="http://www.web2con.com/">http://www.web2con.com/</a>
<span class="summary">Web 2.0 Conference</span>:
<span class="dtstart" title="2010-03-03T19:30+00:00">3 March 2010 at 19:30</span>
<span class="dtend" title="2010-03-06T18:30+00:00">6 March 2010 at 18:30</span>
<span class="location">Argent Hotel, San Francisco, CA</span>
</span>
...
@bitlyfied
bitlyfied / curry.php
Created January 30, 2011 19:31
Experiment with functional patterns in PHP
<?php
function curry() {
$curryArgs = func_get_args();
return function() use ($curryArgs){
$function = array_shift($curryArgs);
$mergedArgs = array_merge($curryArgs, func_get_args());
return call_user_func_array($function, $mergedArgs);
};
}
@bitlyfied
bitlyfied / robot_dance.rb
Created October 20, 2011 12:33
RobotDance (Ruby DSL example)
class RobotDance
def initialize (&block)
instance_eval &block if block
end
def move_arms
puts "swosh!"
end
def shake_booty
@bitlyfied
bitlyfied / gist:2634874
Created May 8, 2012 13:16
Enablin functional tests to wait for ajax requests
/*************************************************
* Detecting ajax calls
*/
// bind a function to the start of every ajax call on the page
$("body").bind("ajaxStart", function(){
$("html").attr("data-processingAjax", true);
});
// bind a function to the end of every ajax call on the page
@bitlyfied
bitlyfied / Sample.py
Created July 6, 2013 21:59
Just a basic Sublime Text 2 plugin
import sublime, sublime_plugin
class SampleCommand(sublime_plugin.TextCommand):
#############################
# Main
#############################
def run(self, edit):
self.edit = edit

Interestingness

why do you think humans love watching the sky so much?

GPT-4

That's a beautiful question—and one that's as deep as the sky itself.

Humans have always been drawn to the sky, and there are many reasons—scientific, psychological, philosophical, and even spiritual—that help explain why: