Skip to content

Instantly share code, notes, and snippets.

plugins=(git)
autoload -U promptinit; promptinit;
PURE_PROMPT_SYMBOL=▲
prompt pure
source /Users/dara/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
/* Extracted from Animate.css */
.animated {
-webkit-animation-duration: 0.6s;
animation-duration: 0.6s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
@-webkit-keyframes fadeInUpMicro {
@dara
dara / tumblr_blog_info.js
Created December 7, 2015 11:30
Get total posts number from Tumblr
var totalPosts;
blogInfoCallback = function(data) {
totalPosts = data.response.blog.posts;
};
jQuery.ajax({
type: "GET",
url : "http://api.tumblr.com/v2/blog/_BLOG_URL_/info",
dataType: "jsonp",
// Safari Pesticide Bookmarklet
// Based on http://pesticide.io
javascript:(function(){
var pesticideStyles = document.getElementById('pesticide-styles'),
head = document.head || document.getElementsByTagName('head')[0],
css = 'body{outline:1px%20solid%20#2980b9%20!important}article{outline:1px%20solid%20#3498db%20!important}nav{outline:1px%20solid%20#0088c3%20!important}aside{outline:1px%20solid%20#33a0ce%20!important}section{outline:1px%20solid%20#66b8da%20!important}header{outline:1px%20solid%20#99cfe7%20!important}footer{outline:1px%20solid%20#cce7f3%20!important}h1{outline:1px%20solid%20#162544%20!important}h2{outline:1px%20solid%20#314e6e%20!important}h3{outline:1px%20solid%20#3e5e85%20!important}h4{outline:1px%20solid%20#449baf%20!important}h5{outline:1px%20solid%20#c7d1cb%20!important}h6{outline:1px%20solid%20#4371d0%20!important}main{outline:1px%20solid%20#2f4f90%20!important}address{outline:1px%20solid%20#1a2c51%20!important}div{outline:1px%20solid%20#036cdb%20!important}p{outline:1px%20solid%
@dara
dara / Sass Mixins
Last active December 20, 2015 02:09 — forked from brentvatne/gist:1218364
//using the technique from: http://colinaarts.com/articles/inline-block-and-you/
@mixin cross-browser-inline-block {
display: inline-block; /* For normal, healthy browsers */
* html & { /* for IE6 */
display: inline;
}
*+html & { /* for IE7 */
@dara
dara / good.css
Last active December 18, 2015 21:38
*, *:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.float-left {
float: left;
}
@dara
dara / gist:4523349
Created January 13, 2013 09:59
.irbrc
require 'rubygems'
require 'hirb'
extend Hirb::Console
Hirb::View.enable
@dara
dara / scrollto.js
Created June 25, 2011 12:19
Scroll To
$('.linked_to_projects').click(function(){
$('html, body').animate({
scrollTop: $("#projects").offset().top
}, 750);
});
$('#projects ul li img').click(function(){
$('html, body').animate({
scrollTop: $("#projects-show").offset().top
}, 750);
@dara
dara / autosize_wrapper.js
Created June 25, 2011 12:17
Autosize Wrapper
var windowHeight;
$('#wrapper').css('height', $(window).height());
$(window).resize(function() {
windowHeight = $(window).height();
$('#wrapper').css('height', windowHeight);
});