Skip to content

Instantly share code, notes, and snippets.

👨‍💻
¯\_(ツ)_/¯

Edvins Antonovs ummahusla

View GitHub Profile
View index.html
<select className="form-control ignore" id="currency" name="currency">
<option value="36">AED - United Arab Emirates Dirham</option>
<option value="175">AFN - Afghan Afghani</option>
<option value="38">ALL - Albanian Lek</option>
<option value="39">AMD - Armenian Dram</option>
<option value="176">ANG - Netherlands Antillean Guilder</option>
<option value="177">AOA - Angolan Kwanza</option>
<option value="42">ARS - Argentine Peso</option>
<option value="19">AUD - Australian dollar</option>
<option value="178">AWG - Aruban Florin</option>
@ummahusla
ummahusla / .eslintrc
Created Apr 28, 2018
React & React Native ESLint configuration file
View .eslintrc
{
"extends": ["eslint:recommended", "plugin:react/recommended"],
"env": {
"jest": true
},
"plugins": ["react", "react-native"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
@ummahusla
ummahusla / tslint.json
Created Mar 14, 2018
TSLint config which work perfectly with Prettier
View tslint.json
{
"rulesDirectory": ["node_modules/codelyzer"],
"rules": {
"arrow-return-shorthand": true,
"callable-types": true,
"class-name": true,
"deprecation": {
"severity": "warn"
},
"forin": true,
@ummahusla
ummahusla / index.html
Created Jan 26, 2018
Shipping beats perfection
View index.html
<div class="container">
<div class="logo row">
<div class="twelve column">
<button id="myBtn">Open Modal test</button>
</div>
</div>
<div id="grid">
@ummahusla
ummahusla / react-firebase-auth.js
Created Feb 13, 2017 — forked from nateinaction/react-firebase-auth.js
This is a version of Facebook's React Conditional Rendering example modified to support firebase authentication.
View react-firebase-auth.js
/*
* This is a version of Facebook's React Conditional Rendering
* example modified to support firebase authentication.
* https://facebook.github.io/react/docs/conditional-rendering.html
*/
import React, { Component, PropTypes } from 'react';
import * as firebase from 'firebase';
function UserAvatar(props) {
@ummahusla
ummahusla / fkeys.app
Created Jan 22, 2017 — forked from dennislapchenko/fkeys.app
OS X global shortcut for making f1-12 keys usable without FN key and reverting it back
View fkeys.app
tell application "System Preferences"
reveal anchor "keyboardTab" of pane "com.apple.preference.keyboard"
end tell
tell application "System Events" to tell process "System Preferences"
click checkbox 1 of tab group 1 of window 1
end tell
quit application "System Preferences"
@ummahusla
ummahusla / luhn.js
Created Dec 21, 2016 — forked from ShirtlessKirk/luhn.js
Luhn validation algorithm
View luhn.js
/**
* Luhn algorithm in JavaScript: validate credit card number supplied as string of numbers
* @author ShirtlessKirk. Copyright (c) 2012.
* @license WTFPL (http://www.wtfpl.net/txt/copying)
*/
var luhnChk = (function (arr) {
return function (ccNum) {
var
len = ccNum.length,
bit = 1,
View .editorconfig
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
# Matches multiple files with brace expansion notation
@ummahusla
ummahusla / README.me
Created Dec 5, 2016
GitHub Readme template
View README.me
# Project Name
TODO: Write a project description
## Installation
TODO: Describe the installation process
## Usage
View .gitignore
# =============== #
# Unity generated #
# =============== #
Temp/
Library/
# ===================================== #
# Visual Studio / MonoDevelop generated #
# ===================================== #
ExportedObj/
You can’t perform that action at this time.