Skip to content

Instantly share code, notes, and snippets.

aishikaty

Block or report user

Report or block aishikaty

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
@max-winderbaum
max-winderbaum / depInj.js
Last active Sep 24, 2017
Poor Man's Dependency Injection
View depInj.js
import dep1 from '../dep1';
import dep2 from '../dep2';
const defaultDeps = {
dep1,
dep2,
};
export function _myModuleFactory({ dep1, dep2 } = defaultDeps) {
const myModule = {};
View gist:715ae4e22642cfff1dbd

Template composition with inclusion

Every template language I have seen provides some mechanism for one template to include another, thus supporting the reuse of repeated elements like headers and footers. The included templates are called partials in Mustache parlance:

<!-- home.hbs -->
<html>
<body>
  {{> header}}
  <p> HOME </p>
  {{> footer}}
View poorman.ntp
date -s "$(curl -s --head http://google.com | awk '/^Date/ {$1=""; print $0}')"
@rxaviers
rxaviers / gist:7360908
Last active Oct 14, 2019
Complete list of github markdown emoji markup
View gist:7360908

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:
@eliperelman
eliperelman / LICENSE.txt
Created Aug 16, 2011 — forked from 140bytes/LICENSE.txt
Throttling and Debouncing
View LICENSE.txt
DO WHAT THE **** YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Eli Perelman <http://eliperelman.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE **** YOU WANT TO PUBLIC LICENSE
@deepsweet
deepsweet / LICENSE.txt
Created May 26, 2011 — forked from 140bytes/LICENSE.txt
$$ yocto framework
View LICENSE.txt
Copyright (c) 2011 Kir Belevich, http://soulshine.in
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
You can’t perform that action at this time.