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

I'm t9md

t9md__t9md_.png Presentation1.png

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

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

now dns add yourdomain.com @ TXT google-site-verification=codehere
now dns add yourdomain.com @ MX ASPMX.L.GOOGLE.COM 1
now dns add yourdomain.com @ MX ALT1.ASPMX.L.GOOGLE.COM 5
now dns add yourdomain.com @ MX ALT2.ASPMX.L.GOOGLE.COM 5
now dns add yourdomain.com @ MX ALT3.ASPMX.L.GOOGLE.COM 10
now dns add yourdomain.com @ MX ALT4.ASPMX.L.GOOGLE.COM 10
View Gherkin-Layout.kbd.json
[
{
"name": "Gherkin Layout",
"author": "https://www.reddit.com/user/di0ib"
},
[
{
"d": true
},
"<h4>Zero</h4>",
@msmfsd
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: https://babeljs.io/docs/plugins/transform-async-to-generator/
// Fetch requirements: Latest Chrome/FF browser or Github fetch polyfill: https://github.com/github/fetch
// async function
async function fetchAsync () {
// await response of fetch call
let response = await fetch('https://api.github.com');
// only proceed once promise is resolved
let data = await response.json();
// only proceed once second promise is resolved
@knowbody
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
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 = "https://cdn.jsdelivr.net/lodash/4.11.1/lodash.min.js";
el.type = "text/javascript";
document.head.appendChild(el);
// Use the following in a bookmarklet:
javascript:var el=document.createElement('script');el.src="https://cdn.jsdelivr.net/lodash/4.11.1/lodash.min.js";el.type = "text/javascript";document.head.appendChild(el);
@ivanyv
ivanyv / application.amp.erb
Created Dec 12, 2015
Easy Google AMP on Rails
View application.amp.erb
<html>
<head>
<link rel="canonical" href="<%= current_uri_sans_amp %>">
</head>
...
</html>
@gokulkrishh
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) {
//CSS
You can’t perform that action at this time.