Skip to content

Instantly share code, notes, and snippets.

View .vimrc
set history=500
filetype plugin on
filetype indent on
set autoread
au FocusGained,BufEnter * checktime
let $LANG='en'
set langmenu=en
set encoding=utf8
View starship.toml
add_newline = false
format = """
roberocity / Convert-ExcelToCsv.ps1
Created Aug 20, 2020
Use PowerShell and Excel to convert a set of files from .xlsx to .csv automatically
View Convert-ExcelToCsv.ps1
param (
if (Test-Path -Path (Resolve-Path $_) -PathType Container) { return $true }
else { throw "The SourcePath is not valid" }})]
roberocity / tablesort.css
Last active Aug 29, 2015
sorts a table by rows with no dependencies
View tablesort.css
th[data-sort] {
cursor: n-resize;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
View gallery.html
roberocity / gist:3750808
Created Sep 19, 2012 — forked from madrobby/gist:3733875
Fade out elements on WebKit and Firefox and IE 9+
View gist:3750808
#mask_demo {
background: #d0d0d0;
width: 80%;
padding: 10px;
position: relative;
/* this may not be a better way to do it, but it is a different way.
it still used the svg for the background on browsers that don't
roberocity /
Created Jul 14, 2012 — forked from peterhost/
Daemon init script for node.js based app/server (DEBIAN/UBUNTU)
# ------------------------------------------------------------------------------
# SOME INFOS : fairly standard (debian) init script.
# Note that node doesn't create a PID file (hence --make-pidfile)
# has to be run in the background (hence --background)
# and NOT as root (hence --chuid)
roberocity / git-deploy.rb
Created May 9, 2012
Git-based deployment for Sinatra
View git-deploy.rb
require 'sinatra/base'
require 'time'
class GitHook < Sinatra::Base
def self.parse_git
# Parse hash and date from the git log command
sha1, date = `git log HEAD~1..HEAD --pretty=format:%h^%ci`.strip.split('^')
set :commit_hash, sha1
set :commit_date, Time.parse(date)
View jquery.equalizeHeight.js
(function( $ ) {
$.fn.maxHeight = function() {
var max = 0;
this.each(function() {
max = Math.max(max, $(this).height() );
return max;
$.fn.equalizeHeight = function() {
roberocity / roberocity.zsh-theme
Created Feb 25, 2012
roberocity oh my zsh theme
View roberocity.zsh-theme
#!/usr/bin/env zsh
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
setopt promptsubst
autoload -U add-zsh-hook