Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Adnan Asani adnasa

🎯
Focusing
Block or report user

Report or block adnasa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:3f671db6635ef0d50827
~/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]: #######################################################################################################################
@adnasa
adnasa / gist:444a4f1ea3868c514cf7
Created Nov 4, 2015 — forked from gjjones/gist:14ff3f528b3253b59525
storing gruntifle using browsersync and browserify for react(jsx)
View gist:444a4f1ea3868c514cf7
var browserSync = require('browser-sync');
module.exports = function (grunt) {
grunt.initConfig({
watch: {
options: {
spawn: false
},
compiled: {
files: ['app/build/bundle.js'],
View gist:b1ede25e4d3ea658a6df
module.exports = function (grunt) {
grunt.initConfig({
browserify: {
dist: {
options: {
transform: [
["babelify", {
loose: "all",
stage: 0
}],
@adnasa
adnasa / .editorconfig
Last active Sep 11, 2015
.editorconfig suggestion for sphere-sunrise project (open to feedback)
View .editorconfig
# 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
@adnasa
adnasa / code.js
Created Aug 3, 2015
js prototypal inheritance mindfuck
View code.js
function Person(name) {
this.name = name;
this.someArray = [];
}
Person.prototype.someArray2 = [];
var adnan = new Person('adnan');
adnan.someArray.push('something1');
adnan.someArray2.push('something2');
View gist:bc05eeb7ec83fe4fe46b
# 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
View gist:73ed5d3b4459badbdecf
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;
}
});
View what.sh
# whats up
alias whats="vagrant"
View tiny-js-pubsub.js
/*! Js Pub/Sub
* http://anasnakawa.com/
* Copyright (c) Anas Nakawa
* inspired by Ben Alman's one <https://gist.github.com/cowboy/661855>
* MIT License
*/
(function( p ) {
var e = p.e = {};
You can’t perform that action at this time.