Skip to content

Instantly share code, notes, and snippets.

View adnasa's full-sized avatar
💐

Adnan Asani adnasa

💐
View GitHub Profile
@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.

@adnasa
adnasa / code.js
Created August 3, 2015 10:32
js prototypal inheritance mindfuck
function Person(name) {
this.name = name;
this.someArray = [];
}
Person.prototype.someArray2 = [];
var adnan = new Person('adnan');
adnan.someArray.push('something1');
adnan.someArray2.push('something2');
➜ 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
@adnasa
adnasa / index.js
Created October 18, 2014 15:54
get the file-extension
var nodePath = require('path');
/**
* @param string filePath
* @return string filePath[extension]
*/
var getFileExtension = function(filePath) {
var extension = nodePath.extname(filePath||'').split('.');
return extension[extension.length - 1];
};
.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"
;
}
@adnasa
adnasa / gist:8454699
Created January 16, 2014 13:06
Create folder with todays date
mkdir `date +%y-%m-%d`