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:8615071b7561b570ce5bc735798b543c
  • Remove reducers, move them to utils
  • Remove actions
  • re-translating "Shared.StatesDropdown.noInitialStates": "In diesem Projekt ist kein Workflow definiert"
  • schema stitching MyCustomType
  • API has a mix of Ref on fields not named as *Ref

Integration

  • LineItems
  • OrderItemsPanel
@adnasa
adnasa / gist:8454699
Created Jan 16, 2014
Create folder with todays date
View gist:8454699
mkdir `date +%y-%m-%d`
View gist:daebcd93304bb50fe302faf7cfdc2e1d
.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"
;
}
View gist:8ec973e44d170bf9ca587b11092b7fb1
Community Packages (64) /Users/adnasa/.atom/packages
├── advanced-open-file@0.16.7
├── ama-react-snippets@0.0.1
├── apex-muted-ui@0.1.4
├── apex-syntax@0.2.0
├── apex-ui@1.0.2
├── atom-jade@0.3.0 (disabled)
├── atom-jest-snippets@1.1.1
├── atom-typescript@11.0.10
├── atom-vim-like-tab@1.4.3
@adnasa
adnasa / index.js
Created Oct 18, 2014
get the file-extension
View index.js
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];
};
View gist:90faab4f6d0cbd1edd5c4a9f5ae28ce0
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
View gist:0656a63101133d2e50a6075637e73ac4
➜ 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
View gist:b04e1cef4e2f4c33d2751bf852a25927
➜ 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 / 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');
@adnasa
adnasa / eyeem-public.md
Last active Mar 6, 2016
Cleaned up eye doc
View eyeem-public.md

#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.

You can’t perform that action at this time.