Skip to content

Instantly share code, notes, and snippets.

Rodrigo Figueroa bidah

Block or report user

Report or block bidah

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
# yw develop
yw() {
yarn workspace $(yarn workspaces info --json | jq '.data' -r | jq "[keys][0] []" -r | fzf) $@

I'm t9md

t9md__t9md_.png Presentation1.png

  • My editor history: Vim > Emacs > Vim > Atom
zkat / index.js
Last active Mar 7, 2020
npx is cool
View index.js
#!/usr/bin/env node
console.log('yay gist')

Run each of the following lines, replacing and codehere with your details:

now dns add @ TXT google-site-verification=codehere
now dns add @ MX ASPMX.L.GOOGLE.COM 1
now dns add @ MX ALT1.ASPMX.L.GOOGLE.COM 5
now dns add @ MX ALT2.ASPMX.L.GOOGLE.COM 5
now dns add @ MX ALT3.ASPMX.L.GOOGLE.COM 10
now dns add @ MX ALT4.ASPMX.L.GOOGLE.COM 10
View Gherkin-Layout.kbd.json
"name": "Gherkin Layout",
"author": ""
"d": true
msmfsd / es7-async-await.js
Last active Mar 28, 2020
Javascript fetch JSON with ES7 Async Await
View es7-async-await.js
// Async/Await requirements: Latest Chrome/FF browser or Babel:
// Fetch requirements: Latest Chrome/FF browser or Github fetch polyfill:
// async function
async function fetchAsync () {
// await response of fetch call
let response = await fetch('');
// only proceed once promise is resolved
let data = await response.json();
// only proceed once second promise is resolved
knowbody / App.js
Last active Nov 7, 2019
Check internet connection in React Native app
View App.js
// quick snippet to check the connection in your RN app
// dispatches an `setIsConnected` action every time the NetInfo changes (on/off network)
componentDidMount() {
const dispatchConnected = isConnected => this.props.dispatch(setIsConnected(isConnected));
NetInfo.isConnected.fetch().then().done(() => {
NetInfo.isConnected.addEventListener('change', dispatchConnected);
denizdogan / lodashify.js
Last active Jan 4, 2018 — forked from khalilovcmd/lodashify.js
to import lodash into chrome dev tools console
View lodashify.js
var el = document.createElement('script');
el.src = "";
el.type = "text/javascript";
// Use the following in a bookmarklet:
javascript:var el=document.createElement('script');el.src="";el.type = "text/javascript";document.head.appendChild(el);
ivanyv / application.amp.erb
Created Dec 12, 2015
Easy Google AMP on Rails
View application.amp.erb
<link rel="canonical" href="<%= current_uri_sans_amp %>">
gokulkrishh / media-query.css
Last active Mar 31, 2020
CSS Media Queries for Desktop, Tablet, Mobile.
View media-query.css
##Device = Desktops
##Screen = 1281px to higher resolution desktops
@media (min-width: 1281px) {
You can’t perform that action at this time.