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
| var Header = (function(w,d,undefined)){ | |
| var _elem = null; | |
| var bindButtons = function(){ | |
| $(document).on('click', _elem.find(".js-toggle-sidebar"), function(){ | |
| Sidebar.toggle(); // | |
| }); | |
| } | |
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
| <div class='box box-light'> | |
| <div class='box-title'>...</div> | |
| <div class='box-inner'>...</div> | |
| </div> |
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
| .box { | |
| padding: 10px; | |
| ... | |
| &.is-active { | |
| } | |
| &.is-inactive { | |
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
| namespace :update do | |
| task :services do | |
| REPOS.each do |repo_path| | |
| uncommitted_files = `cd #{repo_path} && git status --porcelain | wc -l`.strip.chomp.to_i | |
| if uncommitted_files == 0 | |
| puts "Updating #{repo_path} ..." | |
| puts `cd #{repo_path} && bundle update config-gem` |
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
| namespace :update do | |
| task :services do | |
| REPOS.each do |repo_path| | |
| uncommitted_files = `cd #{repo_path} && git status --porcelain | wc -l`.strip.chomp.to_i | |
| if uncommitted_files == 0 | |
| puts "Updating #{repo_path} ..." | |
| puts `cd #{repo_path} && BUNDLE_GEMFILE=#{repo_path}/Gemfile bundle update config-gem` |
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
| <!DOCTYPE html> | |
| <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
| <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> | |
| <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]--> | |
| <head> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
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
| ruby: | |
| `du -h` | |
| # error when running in passenger: | |
| Error message: | |
| No such file or directory - du -h | |
| Exception class: | |
| Errno::ENOENT |
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
| //e.g. | |
| var _ = require('underscore'); | |
| var common_model_extensions = require('lib/util/model_extensions').common; | |
| // which would be: | |
| module.exports = { | |
| common: { | |
| classMethods: { | |
| updateById: function(id, data, cb){ |
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
| 'use strict'; | |
| var _ = require('underscore'); | |
| var Q = require('q'); | |
| var to_run = { | |
| 'one': function(date){ | |
| var deferred = Q.defer(); | |
| setTimeout(function(){ | |
| console.log("Im number one!", date); |