Skip to content

Instantly share code, notes, and snippets.


Edvins Antonovs ummahusla

View GitHub Profile
ummahusla /
Created Jul 5, 2020
Add blank space to mac's dock
defaults write persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
ummahusla /
Created Sep 30, 2019
React placeholder component
.placeholder {
  background: #ededed
  border-bottom: 0.1rem solid #ededed;
  padding: 10rem 2rem;
  text-align: center;
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 / .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 / 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 / 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 id="grid">
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.
import React, { Component, PropTypes } from 'react';
import * as firebase from 'firebase';
function UserAvatar(props) {
ummahusla /
Created Jan 22, 2017 — forked from dennislapchenko/
OS X global shortcut for making f1-12 keys usable without FN key and reverting it back
tell application "System Preferences"
reveal anchor "keyboardTab" of pane ""
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 / 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 (
var luhnChk = (function (arr) {
return function (ccNum) {
len = ccNum.length,
bit = 1,
View .editorconfig
# EditorConfig is awesome:
# 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