Skip to content

Instantly share code, notes, and snippets.

View skchinna7's full-sized avatar

Palgun Shashi Kumar skchinna7

View GitHub Profile
@osjayaprakash
osjayaprakash / SPOJ-IKEYB.cpp
Created January 16, 2013 17:29
SPOJ, IKEYB, I KEYBOARD
#include <iostream>
#include <cstdio>
typedef unsigned long long ull;
typedef unsigned u;
using namespace std;
const u INF=1<<31;
u f[105];
char letter[105];
anonymous
anonymous / Periodic table.markdown
Created May 31, 2016 07:46
Periodic table

Periodic table

I could have used a table, but wasn't really in the mood for it. Thanks @Tim Pietrusky for some jQuery selector help and filter:grayscale idea. Incoming : 2 missing rows, more awesomeness.

A Pen by yoga902 on CodePen.

License.

@mikowl
mikowl / oneliners.js
Last active June 29, 2024 17:39
👑 Awesome one-liners you might find useful while coding.
// Inspired by https://twitter.com/coderitual/status/1112297299307384833 and https://tapajyoti-bose.medium.com/7-killer-one-liners-in-javascript-33db6798f5bf
// Remove any duplicates from an array of primitives.
const unique = [...new Set(arr)]
// Sleep in async functions. Use: await sleep(2000).
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms)));
// or
const sleep = util.promisify(setTimeout);