Skip to content

Instantly share code, notes, and snippets.

View adnasa's full-sized avatar
💐

Adnan Asani adnasa

💐
View GitHub Profile
@adnasa
adnasa / gist:444a4f1ea3868c514cf7
Created November 4, 2015 18:42 — forked from gjjones/gist:14ff3f528b3253b59525
storing gruntifle using browsersync and browserify for react(jsx)
var browserSync = require('browser-sync');
module.exports = function (grunt) {
grunt.initConfig({
watch: {
options: {
spawn: false
},
compiled: {
files: ['app/build/bundle.js'],
~/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]: #######################################################################################################################
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
@adnasa
adnasa / _btn.css
Last active February 4, 2016 21:44
Overhaul suggestion 2: .btn class to set a base for button. adding an additional class to change its state.
.btn {
outline: none;
border: none;
padding: 5px 10px;
letter-spacing: 1px;
text-transform: uppercase;
}
.btn.btn--primary {
color: #333333;
@adnasa
adnasa / _btn.css
Created February 4, 2016 21:46
Overhaul suggestion 1: Adding a specific class that defines that block's state itself
.btn,
.btn--primary,
.btn--secondary,
.btn--inverted {
outline: none;
border: none;
padding: 5px 10px;
letter-spacing: 1px;
text-transform: uppercase;
}
@adnasa
adnasa / eyeem-public.md
Last active March 6, 2016 19:21
Cleaned up eye doc

#EyeEm API

Introduction | API Documentation | Basics | OAuth | Request Headers | Pagination | Images and Image Resolution | Contact

##Introduction

The EyeEm Public API is read-only by default, and covers the complete EyeEm functionality. We do offer write access on a case-by-case basis. We use the API ourselves for our mobile apps, and are actively developing and improving it. The API is currently in version 2.2.0. We are working on v3 and expect to release that soon.

You can register an app by going to Your apps on EyeEm.

➜ dext-hackernews-plugin git:(simplify) ✗ npm run lint
> dext-hackernews-plugin@0.2.1 lint /Users/adnasa/.dext/plugins/dext-hackernews-plugin
> eslint index.js
Oops! Something went wrong! :(
ESLint couldn't find the plugin "eslint-plugin-jsx-a11y". This can happen for a couple different reasons:
@adnasa
adnasa / gist:0656a63101133d2e50a6075637e73ac4
Created September 26, 2016 20:21
hotfix/correct-eslint-error
➜ dext git:(hotfix/correct-eslint-error) npm run lint
> dext@0.4.0 lint /Users/adnasa/Sites/sandbox/js/node/dext
> eslint app
The react/require-extension rule is deprecated. Please use the import/extensions rule from eslint-plugin-import instead.
/Users/adnasa/Sites/sandbox/js/node/dext/app/main/index.js
59:17 error Expected parentheses around arrow function argument having a body with curly braces arrow-parens
149:21 error Expected parentheses around arrow function argument having a body with curly braces arrow-parens
Koen - 351 (Mijn Drom), 98
Foreign Exchange - Raw Life, 90
Jengi Beats - I Got It, 145
L Bordeaux - Few words, 95.50
Dayfly - Magnet, 95
Crustation-J Dilla - Purple (Zikomo Remix), 114
Dwele - Lady (Wantigga Flip), 120
.commit-link tt {
color: #e2e2e2 ;
}
.file-info a.link-gray-dark, pre, code, tt, kbd:not(.badmono), samp, .blob-code, .file-data pre, .line-data, #gist-form .file .input textarea, .blob-code-inner, .blob-code.blob-code-inner, .diff-table .code-review.blob-code {
font-family: "Fira Code"
;
}