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
$ ~/workspace/sandbox/__(-_-)__ |
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
addresses = _.sortBy(addresses, function(address) { | |
addressEntity = address.address; | |
var reducedKey; | |
reducedKey = ['name', 'city', 'zipCode'].reduce(function(previous, current) { | |
if (previous && addressEntity.hasOwnProperty(previous) && addressEntity[previous]) { | |
return previous; | |
} else if (current) { | |
return current; | |
} | |
}); |
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
# http://editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 4 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = 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
# http://editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = 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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
browserify: { | |
dist: { | |
options: { | |
transform: [ | |
["babelify", { | |
loose: "all", | |
stage: 0 | |
}], |
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 browserSync = require('browser-sync'); | |
module.exports = function (grunt) { | |
grunt.initConfig({ | |
watch: { | |
options: { | |
spawn: false | |
}, | |
compiled: { | |
files: ['app/build/bundle.js'], |
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
[alias] | |
d = "diff --unified=10" | |
sh = "show --unified=10" | |
st = "status" | |
co = "checkout" | |
m = "merge" | |
ls = "log --pretty=format:\"%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cn]\" --decorate --date=short" | |
standup = "log --since '1 day ago' --oneline --author <adnan@netconsult.se>" | |
br = "branch" | |
bra = "branch -a" |
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
drush upwd admin --password=drupal |
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
~/workspace/training/magnolia/setup1/magnolia-5.4.3 ᐅ ./apache-tomcat-7.0.64/bin/magnolia_control.sh start | |
[ERROR]: ####################################################################################################################### | |
[ERROR]: The max open files limit allowed by your system may be too low. | |
[ERROR]: See https://documentation.magnolia-cms.com/display/DOCS/Known+issues#Knownissues-Toomanyopenfiles for more information. | |
[ERROR]: If you want to suppress this check, use --ignore-open-files-limit flag. | |
[ERROR]: ####################################################################################################################### |
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
Setting an external node module in your project with the hassle | |
// in random folder (NOT INSIDE THE PROJECT) | |
$ git clone tracking.js | |
$ cd tracking.js | |
$ sudo npm link | |
// in your project | |
$ cd maximalg/node_modules | |
$ npm install tracking.js |