Skip to content

Instantly share code, notes, and snippets.

View sanusart's full-sized avatar

Sasha Khamkov sanusart

View GitHub Profile
@sanusart
sanusart / gist:daff045ab8c94b5b89428d1b452344ca
Last active October 12, 2018 10:53 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup #emoji #github

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@sanusart
sanusart / ObjRename.js
Last active July 14, 2019 11:40
Rename object key (deep object too) #lodashfp #fp #lodash #rename
const { flow, omit, head, set, at } = require("lodash/fp")
const object = {
id: 'CA1',
longName: 'The name',
status: 'open',
another1: 'value1',
another2: 'value2'
};
@sanusart
sanusart / localStorage.js
Last active August 1, 2020 09:03
Jest mock localStorage #test #jest
// ./__mocks__/localStorage.js
let mockStorage = {};
module.exports = window.localStorage = {
setItem: (key, val) => Object.assign(mockStorage, {[key]: val}),
getItem: (key) => mockStorage[key],
clear: () => mockStorage = {}
};
@sanusart
sanusart / String.prototype.js
Created May 14, 2016 22:29
Safe(r) String.prototype extend example #js #javascript
// String.prototype.repeat
// http://jsbin.com/sifesep/edit?js,console,output
Object.defineProperty(String.prototype, 'repeat', {
value: function debug_repeat(times, returnArray) {
var res = [];
var i = 0;
for (i; i < times; i++) {
res.push(this);
}
if (returnArray) {
@sanusart
sanusart / feedly.xml
Created May 7, 2016 08:15
Feedly OPML #rss #sasha #opml
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Sasha subscriptions in feedly Cloud</title>
</head>
<body>
<outline text="Linux" title="Linux">
<outline type="rss" text="Web Upd8 - Ubuntu / Linux blog" title="Web Upd8 - Ubuntu / Linux blog" xmlUrl="http://feeds.feedburner.com/webupd8" htmlUrl="http://www.webupd8.org/"/>
<outline type="rss" text="Arch Linux: Recent news updates" title="Arch Linux: Recent news updates" xmlUrl="http://www.archlinux.org/feeds/news" htmlUrl="https://www.archlinux.org/news/"/>
@sanusart
sanusart / file.js
Created March 19, 2016 17:37
Hide keyboard on iOS #iOS
// hide keyboard on iOS
document.activeElement.blur();
jQuery('input').blur();
@sanusart
sanusart / .jscsrc
Last active December 5, 2015 23:38
jscs settings #jscs #lint
{
"preset": "google",
"validateLineBreaks": "LF",
"validateIndentation": 2,
"requireCurlyBraces": true,
"requireSemicolons": true,
"maximumLineLength": false,
"disallowTrailingComma": true,
"disallowTrailingWhitespace": true,
"validateParameterSeparator": ", ",
@sanusart
sanusart / index.html
Last active December 5, 2015 18:47 — forked from anonymous/index.html
sig
<style id="jsbin-css">
#TABLE_1 {
cursor: move;
height: 82px;
text-align: left;
width: 470px;
perspective-origin: 235px 41px;
transform-origin: 235px 41px;
border-spacing: 0px 0px;
font: normal normal normal normal 16px/normal Helvetica, Arial, sans-serif;
@sanusart
sanusart / gist:96e7bf2695683f64088a
Last active August 19, 2018 04:59 — forked from lsauer/gist:2907369
Google Chrome special pages for memory, debug, resources, profiling, downloads...

lsauer.com


Overview of all chrome:// pages.

  • List by calling chrome://about/
  • Following is a direct dump from the 'about' page for reference

List of Pages as per v20.xxx