Skip to content

Instantly share code, notes, and snippets.

[user]
name =
email =
[core]
autocrlf = input
safecrlf = true
whitespace = fix, -indent-with-non-tab, trailing-space, cr-at-eol
pager = less -R
@Meettya
Meettya / gist:3082964
Created July 10, 2012 12:22 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@Meettya
Meettya / hack.sh
Created March 31, 2012 16:34 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@Meettya
Meettya / observer.coffee
Created February 17, 2012 21:45 — forked from sdiehl/observer.coffee
Observer Pattern in Coffeescript
# app/environment/observer.coffee
###
This module for global Observer
very simple implementation, but works
and support method chaining
###
module.exports = class Observer
@Meettya
Meettya / namespaces.coffee
Created February 4, 2012 00:05 — forked from StanAngeloff/namespaces.coffee
A quick and dirty way to use namespaces in CoffeeScript
# Code:
#
namespace = (target, name, block) ->
[target, name, block] = [exports ? window, arguments...] if arguments.length < 3
top = target
target = target[item] or= {} for item in name.split '.'
block target, top
# Usage:
#
@Meettya
Meettya / gist:1732961
Created February 3, 2012 22:00 — forked from pmuellr/gist:1004413
BBEdit Language Module for CoffeeScript
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
BBEdit Language Module for CoffeeScript
Put this file in
~/Library/Application Support/BBEdit/Language Modules
or equivalent.
Based off of the examples shipped in the BBEdit SDK.
@Meettya
Meettya / test_indexing.pl
Created December 30, 2011 14:47
test indexing compare compile regex and others features
use IO::File;
use File::Slurp;
#use re 'debug';
#use Smart::Comments;
use English qw(-no_match_vars);
use Data::Dumper 'Dumper';
use Benchmark qw/cmpthese timethese/;
my $cnt = 30;
my $testfile = 'test.xml';
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let colors_name = "kraihlight"
@Meettya
Meettya / Author.pm
Created February 25, 2011 21:26 — forked from und3f/Author.pm
package NoticeBackend::Author;
use Mojo::Base 'Mojolicious::Controller';
use 5.12.0;
use warnings;
use utf8;
use MojoX::Redis;
use Mojo::IOLoop;