This file contains 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
{ | |
"auto_complete": true, | |
"caret_style": "phase", | |
"close_windows_when_empty": false, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"find_selected_text": true, | |
"fold_buttons": false, | |
"folder_exclude_patterns": | |
[ |
This file contains 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
/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js*/ | |
/** MIT License | |
* | |
* KeySpline - use bezier curve for transition easing function | |
* Copyright (c) 2012 Gaetan Renaudeau <[email protected]> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a | |
* copy of this software and associated documentation files (the "Software"), | |
* to deal in the Software without restriction, including without limitation | |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
This file contains 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
checkboxes=document.getElementsByName("checkableitems[]");for(var i=0,n=checkboxes.length;i<n;i++){checkboxes[i].checked=true} |
This file contains 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
[ | |
{ "keys": ["super+`"], "command": "show_panel", "args": {"panel": "console", "toggle": true} }, | |
{ "keys": ["super+shift+o"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} }, | |
{ "keys": ["super+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, | |
{ "keys": ["super+3"], "command": "find_under_expand" }, | |
{ "keys": ["super+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }, | |
{ "keys": ["alt+up"], "command": "swap_line_up" }, | |
{ "keys": ["alt+down"], "command": "swap_line_down" }, | |
{ "keys": ["super+b"], "command": "toggle_side_bar" }, | |
{ "keys": ["super+ctrl+b"], "command": "build" }, |
This file contains 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
var dialog = document.createElement('div'), | |
ie6Launch = 2001, | |
ie7Launch = 2006, | |
currentYear = new Date().getFullYear(), | |
ieVersion = head.browser.version, | |
timeAgo = ieVersion <= 6 ? currentYear - ie6Launch : currentYear - ie7Launch; | |
dialog.className = 'dialog-fixed browsers'; | |
dialog.innerHTML = '\ | |
<div class="out-box"> \ |
This file contains 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
// how could you rewrite the following to make it shorter? | |
if (foo) { | |
bar.doSomething(el); | |
} else { | |
bar.doSomethingElse(el); | |
} | |
// how could this code be rewritten in order to remove the if? | |
if (foo) { | |
bar.doSomething(); |
This file contains 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
// how could you rewrite the following to make it shorter? | |
if (foo) { | |
bar.doSomething(el); | |
} else { | |
bar.doSomethingElse(el); | |
} | |
// how could this code be rewritten in order to remove the if? | |
if (foo) { | |
bar.doSomething(); |
This file contains 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
<div class="add-offer-field-image"> | |
<div class="add-offer-upload-image"> | |
<input class="add-offer-field-file" type="file" name="image"> | |
Adicionar imagem<i class="icon-picture"></i> | |
</div> | |
<div class="add-offer-image-preview"> | |
<img src="" alt=""> | |
</div> | |
</div> |
This file contains 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
/* | |
* jQuery autoresize 0.1 | |
* http://jusbrasil.com | |
* Copyright 2013 | |
* Free to use under the MIT license. | |
* http://www.opensource.org/licenses/mit-license.php | |
* @author: [email protected] | |
*/ | |
This file contains 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
#!/bin/bash | |
echo "Restarting VirtualBox" | |
sudo /Library/StartupItems/VirtualBox/VirtualBox restart | |
echo "Starting vagrant [lb, webnode, testsuite]" | |
cd ~/git/jusbrasil-webpy/resources | |
vagrant halt -f; vagrant up | |
echo "Activating virtualenv" |
OlderNewer