Skip to content

Instantly share code, notes, and snippets.

@jbottigliero
jbottigliero / 0.1.md
Created March 25, 2019 23:49
conventional-changelog-config-spec--v0.1
@jbottigliero
jbottigliero / keybase.md
Last active August 29, 2015 14:20
keybase.md

Keybase proof

I hereby claim:

  • I am jbottigliero on github.
  • I am joebot (https://keybase.io/joebot) on keybase.
  • I have a public key whose fingerprint is 083B 05C2 872D 0345 E3C3 FA60 38A4 FE61 F8F9 ABBC

To claim this, I am signing this object:

@jbottigliero
jbottigliero / Backbone.Collection.sort.js
Last active August 29, 2015 14:04
An override for Backbone.Collection.sort to allow for simple reversing using a "reverse" boolean option.
define([
/* global Backbone */
'backbone'
], function(){
'use strict';
/**
* Override for Backbone.Collection.sort to allow for simple reversing using
* a 'reverse' boolean option.
@jbottigliero
jbottigliero / inspect.applescript
Last active August 29, 2015 14:01
inspect-ios-simulator
tell application "Safari"
activate
end tell
try
tell application "System Events" to tell process "Safari"
click menu item 2 of menu of menu item "iOS Simulator" of menu 1 of menu bar item "Develop" of menu bar 1
end tell
on error error_message
return error_message
@jbottigliero
jbottigliero / repo-activity-stream.js
Last active August 29, 2015 14:01
bitbucket-fluid-fix
// Moves the BitBucket Activity Stream out of the ".sidebar"
(function(){
var o = document.getElementById('dashboard-overview') || document.getElementById('repo-overview') || document.getElementById('profile-tab-content');
if (!o) return;
a = o.querySelector('.sidebar'),
m = o.firstElementChild;
o.insertBefore(a, m);
a.classList.remove('sidebar');
if (o.id === 'profile-tab-content') {
@jbottigliero
jbottigliero / select.jsx
Created December 16, 2013 04:29
React <select> Component (JSX)
/** @jsx React.DOM */
define(['reactjs'], function(React){
return React.createClass({
getDefaultProps: function(){
return {
multiple: false
/*
name: 'mySelect'
@jbottigliero
jbottigliero / dabblet.css
Created July 11, 2013 16:32
Attempt for Chrome-style progress-indicator with SVG and CSS animations
/**
* Attempt for Chrome-style progress-indicator with SVG and CSS animations
*/
@keyframes spin {
to {
stroke-dashoffset: 360;
}
}
<html>
<head>
<style>
@-webkit-keyframes clockwise {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
@jbottigliero
jbottigliero / jquery.detect.js
Last active December 19, 2015 05:29
AMD wrapper of Zepto's 'detect' module for jQuery
(function (root, doc, factory) {
if (typeof define === 'function' && define.amd) {
define(['global/jquery'], function( $ ) {
factory( $, root, doc);
return $;
});
} else {
factory( root.jQuery, root, doc);
@jbottigliero
jbottigliero / layers.html
Last active December 18, 2015 19:49
layers prototype of concept based on forcast.io ui
<html>
<head>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<meta name="apple-mobile-web-app-capable" content="yes">
<title>layers</title>
<style>