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
/home/tokenvolt/Android/Sdk/tools/emulator -avd Nexus_5_API_21_x86 | |
/home/tokenvolt/Android/Sdk/tools/adb logcat | |
/home/tokenvolt/Android/Sdk/tools/adb shell | |
/home/tokenvolt/Android/Sdk/tools/adb devices |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
Sublime User settings | |
{ | |
"font_size": 11, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"tab_size": 2, | |
"translate_tabs_to_spaces": 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
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d jsondata http://localhost:3000/api/path |
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
class DefaultImage | |
def initialize(width, height) | |
@width = width | |
@height = height | |
end | |
def create(options={}) | |
name = options[:name] || "image_#{Time.now.to_i}" | |
default_format = 'png' |
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
SELECT * FROM | |
(SELECT * FROM | |
(SELECT id FROM users) AS users_only_ids | |
WHERE id > 2) AS users_only_ids_filtered | |
ORDER BY id; |
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
Show hidden characters
[ | |
{ | |
"button": "button1", | |
"modifiers": ["alt"], | |
"press_command": "drag_select", | |
"command": "elixir_goto_definition" | |
}, | |
{ | |
"button": "button1", | |
"modifiers": ["shift"], |
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
{acl, admin, {user, "adminname", "yyyy.ru"}}. | |
{hosts, ["yyyy.ru"]}. | |
{loglevel, 4}. | |
{listen, | |
[ | |
{5222, ejabberd_c2s, [ | |
{access, c2s}, | |
{shaper, c2s_shaper}, | |
{max_stanza_size, 65536}, |
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
contextTypes: | |
router: React.PropTypes.func | |
tree: React.PropTypes.func | |
componentDidMount: -> | |
# TODO: set initial currentPath on page load | |
CurrentPathCursor = @props.tree.select('currentPath') | |
CurrentPathCursor.on 'update', (e) => |
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
namespace :webpack do | |
desc 'create symlinks for images and fonts' | |
task symlink: :environment do | |
images_target = Rails.root.join('app', 'assets', 'images/') | |
fonts_target = Rails.root.join('app', 'assets', 'fonts/') | |
images_link = Rails.root.join('client', 'assets', 'images/') | |
fonts_link = Rails.root.join('client', 'assets', 'fonts/') | |
FileUtils.mkdir_p(images_link) | |
FileUtils.mkdir_p(fonts_link) |