Skip to content

Instantly share code, notes, and snippets.

@kav
kav / SketchSystems.spec
Last active September 27, 2022 01:06
Tool
Tool
Active
mark lost ->Inactive
mark stolen -> Inactive
mark out for repair -> Inactive
mark hidden -> Inactive
mark consumed -> Inactive
With A
B request -> Requested
A transfer -> Transferring

Keybase proof

I hereby claim:

  • I am kav on github.
  • I am kavla (https://keybase.io/kavla) on keybase.
  • I have a public key ASCKk-WxqWE_GYOwTag_U2EXMjzgwSw9pXq3i0PAJu1nCwo

To claim this, I am signing this object:

@kav
kav / live_loss_plot_keras.ipynb
Created December 11, 2017 21:43 — forked from stared/live_loss_plot_keras.ipynb
Live loss plot for training models in Keras
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
-- Import Simple Note Folder into Apple Notes.
-- This is based on a script I found to do general note import modified to work with the simplenote web export
-- get a file to import to a note
--set noteFiles to choose folder with prompt "Import which files?"
set noteFiles to every item of (choose file with prompt "Choose the Files you'd like to import:" with multiple selections allowed) as list
-- get the name of the account that you want to add the note to
@kav
kav / gist:3223603
Created August 1, 2012 04:17
archiveMessage
- (void)archiveMessage:(CTCoreMessage *)message
{
CTCoreFolder *inbox = [account folderWithPath:@"INBOX"];
[self connect];
[inbox moveMessageWithUID:message.uid toPath:@"[Gmail]/All Mail"];
}
@kav
kav / Facebook.coffee
Created September 15, 2011 22:33
Facebook Connect Auth Middleware
http = require('http')
module.exports = (app) ->
ensureLogin: (req, res, next) ->
return res.end() unless req.session?
if req.session.fbid?
return next()
req.authenticate ['facebook'], (error, authenticated) ->
unless authenticated then return res.end()
fbUser = req.getAuthDetails().user
@kav
kav / gist:1126093
Created August 4, 2011 20:01
Connect-Auth Facebook middleware
module.exports = (app) ->
ensureLogin: (req, res, next) ->
return res.end() unless req.session?
if req.session.fbid?
return next()
console.log req.isAuthenticated()
console.log 'Heading off to fb'
req.authenticate ['facebook'], (error, authenticated) ->