Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Hrusikesh Panda mrchief

🎯
Focusing
Block or report user

Report or block mrchief

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
@mrchief
mrchief / cssLoader.js
Created Jun 28, 2018
react-static vendor css chunks
View cssLoader.js
'use strict' // eslint-disable-line
import ExtractCssPlugin from 'extract-text-webpack-plugin'
import path from 'path'
import postcssFlexbugsFixes from 'postcss-flexbugs-fixes'
import postcssPresetEnv from 'postcss-preset-env'
export default ({ config, stage }) => {
let cssLoader = [
{
loader: 'css-loader',
View JSONView.dark.theme.css
body {
white-space: pre;
font-family: monospace;
background: rgba(34,47,53,1);
color: rgba(96,125,138,1);
}
.property {
font-weight: bold;
color:rgba(0,253,255,1);
@mrchief
mrchief / array-intersects.js
Created Jun 2, 2018
Simple array intersection check in ES6
View array-intersects.js
/* Returns true if a intersects with b
* a is said to intersect with b if at least 1 element of a is present in b.
* e.g.
* intersects(['1', '2'], ['1', '3', '4']) // true
* intersects(['1', '2'], ['3', '4']) // false
*/
export default (a, b) => a.some(k => b.indexOf(k) > -1)
View es6-debounce.js
const debounce = (func, wait, immediate) => {
let timeout
return (...args) => {
const later = () => {
timeout = null
if (!immediate) func(...args)
}
const callNow = immediate && !timeout
View bloodhound.html
<div id="bloodhound">
<input class="typeahead" type="text" placeholder="States of USA">
</div>
View artifactory-logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mrchief
mrchief / jsbin.tewitowa.css
Created Jun 25, 2014
Glassy Auto Ajax Bootstrap Overlay
View jsbin.tewitowa.css
#pleaseWaitDialog .modal-body {
text-align: center;
height: 100%;
}
.bar {
text-align: center;
color: #FFF;
text-shadow: 0px 1px 2px rgba(0,0,0,0.25);
line-height: 5em;
View jsbin.ELeYani.css
body {
padding: 0;
margin: 0;
}
.wrapper {
width: 100%;
margin: 0 auto;
View jsbin.ELeYani.css
body {
padding: 0;
margin: 0;
}
.wrapper {
width: 100%;
margin: 0 auto;
You can’t perform that action at this time.