Skip to content

Instantly share code, notes, and snippets.

View lautapercuspain's full-sized avatar
:octocat:
I'm a cool octocat

Lautaro Gruss lautapercuspain

:octocat:
I'm a cool octocat
View GitHub Profile
@kentcdodds
kentcdodds / move-photos.js
Created January 11, 2020 00:01
Just a script I wrote to get my downloaded Google Photos into the right place.
const path = require('path')
const fs = require('fs')
const execSync = require('child_process').execSync
if (!process.argv[2] || !process.argv[3]) {
throw new Error('you did not pass the source and destination paths')
}
const searchPath = path.join(process.cwd(), process.argv[2])
const destination = path.join(process.cwd(), process.argv[3])
@lautapercuspain
lautapercuspain / layout.html.erb
Created August 24, 2012 17:35 — forked from joho/layout.html.erb
Doing custom facebook JS api stuff while loading their API async (from the layout).
<body>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'YOUR_APP_ID', // App ID
status : true, // check login status
});
// check if the view has registered an "after facebook load callback"
if(typeof window.appSpecificFbAsyncInit == 'function') {