Skip to content

Instantly share code, notes, and snippets.

View krishna2nd's full-sized avatar
🎯
Focusing

Krishna krishna2nd

🎯
Focusing
View GitHub Profile
@krishna2nd
krishna2nd / Sum Curry function with extensibility
Last active September 13, 2019 08:50
Curry function to find sum of integers with different parameter usage
function sum() {
let args = [...arguments];
if (args.length > 2) {
let sumValue = 0;
args.forEach(arg => {
sumValue += arg;
});
return sumValue;
}
if (args.length === 2) {
@krishna2nd
krishna2nd / dabblet.css
Created July 18, 2018 07:01 — forked from htmlr/dabblet.css
Webkit CSS3 Reflection with Box Shadow
/**
* CSS 3 Reflection with Box Shadow
*/
figure {
position:relative;
display:block;
width:96px;
}
@krishna2nd
krishna2nd / destructuring.js
Created April 24, 2018 09:29 — forked from mikaelbr/destructuring.js
Several demos and usages for ES6 destructuring. Runnable demos and slides about the same topic: http://git.mikaelb.net/presentations/bartjs/destructuring
// === Arrays
var [a, b] = [1, 2];
console.log(a, b);
//=> 1 2
// Use from functions, only select from pattern
var foo = () => [1, 2, 3];
@krishna2nd
krishna2nd / index.html
Created February 9, 2018 16:12
Twitter Heart
<div class="heart"></div>
@krishna2nd
krishna2nd / react_samples_list.md
Created February 9, 2018 16:06 — forked from jpalala/react_samples_list.md
React Samples List
@krishna2nd
krishna2nd / gist:da4dcec65fe17134da1d8f50efca484e
Created January 15, 2018 07:26 — forked from AliMD/gist:3344523
All github Emoji (Smiles)

All github Emoji (Smiles)

ali.md/emoji

:bowtie: | 😄 | 😆 | 😊 | 😃 | ☺️ | 😏 | 😍 | 😘 | :kissing_face: | 😳 | 😌 | 😆 | 😁 | 😉 | :wink2: | 👅 | 😒 | 😅 | 😓

😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 | :neckbeard: | 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷

😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨

@krishna2nd
krishna2nd / react-intl-en.js
Created December 25, 2017 02:38
Sample React intl file
!function(e, a) {
"object" == typeof exports && "undefined" != typeof module ? module.exports = a() : "function" == typeof define && define.amd ? define(a) : (e.ReactIntlLocaleData = e.ReactIntlLocaleData || {},
e.ReactIntlLocaleData.en = a())
}(this, function() {
"use strict";
return [{
locale: "en",
pluralRuleFunction: function(e, a) {
var n = String(e).split(".")
, l = !n[1]
?
1
2
3
4
5
6
7
8
9
@krishna2nd
krishna2nd / gist:4c177813db8be918c2003000c2d76085
Created November 5, 2017 10:59 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

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: