Skip to content

Instantly share code, notes, and snippets.

@gblache
gblache / scp.scpt
Created March 4, 2009 04:59
scp AppleScript for use with Quicksilver or Automator
tell application "Finder"
set destination to "user@domain.com"
set path to "/home/user/upload/path"
set s to selection
repeat with eachSelection in s
set x to eachSelection as string
set y to POSIX path of x
do shell script "scp -r \"" & y & "\" " & destination & ":" & path
end repeat
end tell
@gblache
gblache / backbone_speed.html
Created June 13, 2012 06:08
Iterative vs Bulk add in Backbone
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Backbone Collection Demo</title>
</head>
<script src="http://underscorejs.org/underscore.js" type="text/javascript"></script>
<script src="http://backbonejs.org/backbone.js" type="text/javascript"></script>
<script type="text/javascript">
var collection = new Backbone.Collection();
@gblache
gblache / file1.txt
Created August 28, 2015 13:50
a gist for a user with token api call via ajax
String file contents via ajax
@gblache
gblache / simple.jsx
Last active December 11, 2015 05:11
import React from 'react'
import fetch from './actions'
import { connect } from 'react-redux'
const MyComponent extends React.Component {
componentDidMount() {
const { dispatch } = this.props
dispatch(fetch())

Keybase proof

I hereby claim:

  • I am gblache on github.
  • I am gblache (https://keybase.io/gblache) on keybase.
  • I have a public key ASDXYIrudbfyObKZ3itdmhI7qlfGPutxqDsOi77o3MpEmQo

To claim this, I am signing this object: