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 / 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
@bitlyfied
bitlyfied / gist:6138540
Created August 2, 2013 09:12
Juppy Host File
127.0.0.1 noths.juppy.noths.com juppy.noths.com www.juppy.noths.com assets0.juppy.noths.com assets1.juppy.noths.com assets2.juppy.noths.com assets3.juppy.noths.com assets4.juppy.noths.com
var contributors = [
{ id: 35, firstName: "Mark", lastName: "Spencer", photo:"https://placekitten.com/200/201" },
{ id: 89, firstName: "Jordan", lastName: "Salinger", photo:"https://placekitten.com/200/202" },
{ id: 90, firstName: "Carl", lastName: "Jung", photo:"https://placekitten.com/200/203" },
{ id: 11, firstName: "Dwight", lastName: "Eisenhower", photo:"https://placekitten.com/200/204" },
{ id: 22, firstName: "Walter", lastName: "White", photo:"https://placekitten.com/200/205" },
{ id: 67, firstName: "Roger", lastName: "Rabbit", photo:"https://placekitten.com/200/206" },
{ id: 98, firstName: "Pen", lastName: "Pineapple", photo:"https://placekitten.com/200/207" }
]
@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 / test-swagger.json
Created October 14, 2022 17:09
Testing swagger
{
"basePath": "/api",
"consumes": [
"application/json"
],
"host": "myapi.com",
"info": {
"title": "Swagger API for CollegeBackerWeb.RestApi"
},
"paths": {
This is our 61st weekly listing as we sail past 900 members, jam packed with conscious dance, contact improv and live music to dance wildly to
🙏😍🏃‍♂️
Conscious dance highlights include Tuesday Vibration, the highly acclaimed Natural Dance on Wednesday, Good Friday 5R with Bernadette and Special Blindfolded CI on Saturday
💃🙏🏃‍♂️
Live music highlights include [???]