This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "MacOS -> PC Shortcuts", | |
"rules": [ | |
{ | |
"description": "Top/bottom of document (ctrl+home/ctrl+end)", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": <%= from("home", ["command"], ["any"]) %>, | |
"to": <%= to([["up_arrow", ["left_command"]]]) %>, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# simple rake task to output a changelog between two commits, tags ... | |
# output is formatted simply, commits are grouped under each author name | |
# | |
desc "generate changelog with nice clean output" | |
task :changelog, :since_c, :until_c do |t,args| | |
since_c = args[:since_c] || `git tag | head -1`.chomp | |
until_c = args[:until_c] | |
cmd=`git log --pretty='format:%ci::%an <%ae>::%s::%H' --after=#{since_c} --before=#{until_c}` | |
entries = Hash.new |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
from django.contrib.auth import User | |
from mycompany.models import Client | |
from userprofiles.models import Profile | |
class External(Profile): | |
#External-specific models | |
client = models.ForeignKey(Client) | |
def __unicode__(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$().ready(function(){ | |
// Instant Search | |
$('#q').keyup(function(){ | |
$('.search_item').each(function(){ | |
var re = new RegExp($('#q').val(), 'i') | |
if($(this).children('.search_text')[0].innerHTML.match(re)){ | |
$(this).show(); | |
}else{ | |
$(this).hide(); | |
}; |