Skip to content

Instantly share code, notes, and snippets.

View andzi's full-sized avatar

andzil andzi

View GitHub Profile
@PurpleBooth
PurpleBooth / README-Template.md
Last active November 5, 2025 16:18
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@aranega
aranega / catsoo.md
Last active April 6, 2017 07:55
CatsooLang documentation

CatsooLang Documentation (under construction...)

What is CatsooLang?

CatsooLang is a little Domain Specific Langage (DSL) that allows you to handle models in a textual programming way into http://www.genmymodel.com. You can handle very low level feature of your model. CatsooLang interpreter is evaluated on the client side only, there is no intensive communication with server (there is some, we will come back on this later). Here is some details about the language:

  • dynamic typed,
  • adhoc polymorphic (function overloading) and type constraints/bounds,
@msmuenchen
msmuenchen / gist:9318327
Last active April 20, 2025 09:32
KeePass v2.x (KDBX v3.x) file format
Convention: Byte array notation as it would appear in a hexeditor.
= Layout=
KDBX files, the keepass database files, are layout as follows:
1) Bytes 0-3: Primary identifier, common across all kdbx versions:
private static $sigByte1=[0x03,0xD9,0xA2,0x9A];
2) Bytes 4-7: Secondary identifier. Byte 4 can be used to identify the file version (0x67 is latest, 0x66 is the KeePass 2 pre-release format and 0x55 is KeePass 1)
@lorenzoplanas
lorenzoplanas / ted.csv
Created December 25, 2013 20:55
Script to get direct download URLs for TED conferences
We can't make this file beautiful and searchable because it's too large.
URL,ID,URL,Speaker,Name,Short Summary,Event,Duration,Publish date
http://www.ted.com/talks/view/id/,1,http://www.ted.com/talks/view/id/1,Al Gore,15 ways to avert a climate crisis,"With the same humor and humanity he exuded in An Inconvenient Truth, Al Gore spells out 15 ways that individuals can address climate change immediately, from buying a hybrid to inventing a new, hotter ""brand name"" for global warming.",TED2006,0:16:17,6/27/2006
http://www.ted.com/talks/view/id/,92,http://www.ted.com/talks/view/id/92,Hans Rosling,Debunking third-world myths with the best stats you've ever seen,"You've never seen data presented like this. With the drama and urgency of a sportscaster, statistics guru Hans Rosling debunks myths about the so-called ""developing world.""",TED2006,0:19:50,6/27/2006
http://www.ted.com/talks/view/id/,66,http://www.ted.com/talks/view/id/66,Sir Ken Robinson,Do schools kill creativity?,Sir Ken Robinson makes an entertaining and profoundly moving case for creating an education system that nurtu
@TomByrne
TomByrne / MultiExporter.jsx
Last active November 15, 2025 01:33
An Illustrator script for exporting layers and/or artboards into separate files (PNG8 / PNG24 / EPS / PDF / SVG / JPG / FXG).See http://www.tbyrne.org/export-illustrator-layers-to-svg-files
// MultiExporter.jsx
// Version 0.1
// Version 0.2 Adds PNG and EPS exports
// Version 0.3 Adds support for exporting at different resolutions
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize
// Version 0.5 Fixed cropping issues
// Version 0.6 Added inner padding mode to prevent circular bounds clipping
//
// Copyright 2013 Tom Byrne
// Comments or suggestions to tom@tbyrne.org
@mndrix
mndrix / scrape.prolog
Last active October 23, 2016 02:20
speculative sketch of a web scraper in Prolog with XPath, regular expressions and constraints
% The numerous inline comments are explanatory. Normal code wouldn't have them.
% I'm using double quotes to delineate raw text content. Real code would use
% a quasiquotation mechanism.
amazon_condition_overview(ASIN, Condition, BestPrice, Inventory, Section) :-
% HTTP GET the URL and parse it into a DOM structure
get(url("amazon.com/gp/offer-listing/$ASIN/?ie=UTF8"), DOM),
% build an atom representing the tab's node ID
TabId = qq("olpTab$Condition"),
@kshwetabh
kshwetabh / GMailReminder.gs
Created February 11, 2013 02:09
Reminder script for GMail: A simple Google Apps Script to create a Google Calendar event (reminder) for any mail (with a specific label). You can then setup ("timed") triggers in Apps Script... (public version of the GMailReminder gist)
/**
* Reminder script for GMail: A simple Google Apps Script to create a Google Calendar event (reminder) for any mail (with a
* specific label). You can then setup ("timed") triggers in Apps Script (hourly, etc) to monitor your Inbox.
* How to Use:
* 1. Log into Google Drive account and create a Google Script.
* 2. Copy and paste the below snippet into the gs file.
* 3. Make sure to update the 'reminderLabel', 'calendarName' and 'reminderDuration' as per your preference.
* 4. Test the script to make sure it is working properly.
* 5. Setup a time-driven Project Trigger (hourly, etc) to automatically run this script and create calendar events.
*
@oumu
oumu / Evernote ENML Editor Revamp.css
Created October 4, 2012 13:21
#css #userscript : Evernote ENML Editor Revamp
div.head, div.foot {
display:none;
}
.page {
width:99%;
}
.body {
background:url(data:image/png;
base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAG0lEQVQIW2OMq7zlw4ADMIIkF7WrbcEmP+gkAarWGgXyq5CNAAAAAElFTkSuQmCC) repeat;
border-top:0;
@mminer
mminer / pocket.py
Created July 27, 2012 06:45
A script to save URLs to Pocket (read it later service).
#!/usr/bin/env python
"""
Saves URL(s) to a user's Pocket queue.
It accepts either command line arguments or a URL from the OS X clipboard.
For information about Pocket see http://getpocket.com/
"""
import optparse
import subprocess
@aksiksi
aksiksi / imdbtop250-scrape.py
Created July 7, 2012 18:08
Scrapes IMDB Top 250 list and writes data to a database.
#################################################################
## Written by: Assil Ksiksi ##
## ## ## ##
## Scrapes IMDB for movie IDs, makes API requests, then writes ##
## the results to a database. ##
## ## ## ##
#################################################################
import re, requests, sqlite3, json, time