Skip to content

Instantly share code, notes, and snippets.

@adelin-b
adelin-b / ankiToOrg.ts
Last active May 3, 2022 05:05
A script to convert anki file to org file using anki-connect anki plugin and anki-editor for emacs `deno run --allow-net anki.ts "*"` or `deno run --allow-net anki.ts "Deckname"` or inside emacs evil mode `:read !deno run --allow-net anki.ts "*"` WARNING, currently anki-editor break html by escaping it automaticaly when you push the imported decks
const notesInfo = (results: any[]) => ({
action: "notesInfo",
version: 6,
params: {
notes: results,
},
});
const deckname = Deno.args[0] ?? "*";
@mgonto
mgonto / app.js
Last active December 18, 2015 01:19
Angularytics Bootstrap
angular.module('sample-app', ['angularytics'])
.config(function(AngularyticsProvider) {
AngularyticsProvider.setEventHandlers(['Console', 'Google']);
})
.run(function(Angularytics) {
Angularytics.init();
});
@gustin
gustin / run-changed-tests.sh
Created November 29, 2012 16:10 — forked from chrismdp/run-changed-tests.sh
Handy little command to run all the tests that I've changed since the last commit
git status --porcelain | grep 'test' | grep -v 'factories' | cut -c4- | sort | uniq | xargs zeus test
@schneems
schneems / gist_snippits.rb
Created October 22, 2012 17:10
gist_snippits.rb
require 'json'
## What
# This file takes in a markdown file and converts any [codeblocks](http://daringfireball.net/projects/markdown/syntax#precode)
# into gists, then embeds the gists via JS.
# Watch out for Github rate limiting, via IP, this is not an authenticated request
@demonbane
demonbane / makeapp.sh
Created July 5, 2011 20:05
Create a Fluid-style app launcher for single-window Chrome instances on OSX
#!/bin/sh
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
name="$inputline"
echo "What is the url (e.g. https://www.google.com/calendar/render)?"
read inputline
url="$inputline"
@fnhipster
fnhipster / html5.haml
Created April 9, 2011 01:19
HTML5 HAML Template
!!! 5
%html
%head
%title= "Your Website"
%meta{ :content => "", :name => "description" }
%meta{ :content => "", :name => "author" }
%meta{ :content => "3 days", :name => "revisit-after" }
%link{ :href => "http://creativecommons.org/licenses/by/3.0/", :rel => "license", :title => "Creative Commons Attribution 3.0 Unported License" }
%link{ :href => "/feed", :rel => "alternate", :title => "Atom", :type => "application/atom+xml" }
%link{ :href => "/css/screen.css", :media => "screen", :rel => "stylesheet" }