Skip to content

Instantly share code, notes, and snippets.

lambdamusic /
Last active June 8, 2024 03:21 — forked from joshisumit/
Create GIST from your python code with python requests module and OAuth token.
HTTP Reuests has following parameters:
1)Request URL
2)Header Fields
4)Request body
* head over to and generate a new token with 'gists' permissions
lambdamusic /
Created September 24, 2018 19:29 — forked from maesa/
Bash script for splitting large CSV files while keeping the header into 100 lines a piece using Split. Outputs as Part1, Part2, ... while keeping its Header
HDR=$(head -1 $FILENAME)
split -l 100 $FILENAME xyz
for f in xyz*
if [ $n -gt 1 ]; then
echo $HDR > Part${n}.csv
# Obtain the label of a given class (:class1).
?c a :class1 ;
<> ?l .
# Obtain a list of classes.
lambdamusic /
Last active July 27, 2023 14:28 — forked from fedir/
Clone or update all user's gists #gists
# -*- coding: utf-8 -*-
Forked from
- allows to import Github gists into a local DASH database (
- gists are added to any existing snippet already in database
- filetypes are added, but support is very basic
lambdamusic / LICENSE.txt
Created March 1, 2016 17:32 — forked from anonymous/LICENSE.txt
Ontology documentation
The MIT License (MIT)
Copyright (c) 2016 OntoSPy project []
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
lambdamusic / gist:eb4f4079642ff8e160a2
Created January 4, 2016 15:49
TextMate 2 .tm_properties

This is all based on the [alpha release][1].


From the built-in help system:

For many settings TextMate will look for a .tm_properties file in the current folder and in any parent folders (up to the user’s home folder).

These are simple setting = value listings where the value is a format string in which other variables can be referenced.

lambdamusic / install-poppler-qt4-xpdf
Created November 20, 2015 18:01 — forked from cczona/install-poppler-qt4-xpdf
brew install -v poppler --with-qt4 --enable-xpdf-headers
$ brew install -v poppler --with-qt4 --enable-xpdf-headers
==> Downloading
File already downloaded in /Users/cczona/Library/Caches/Homebrew
/usr/bin/tar xf /Users/cczona/Library/Caches/Homebrew/poppler-0.18.2.tar.gz
Package QtCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtCore' found
Package QtGui was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtGui.pc'
lambdamusic /
Created November 20, 2015 16:51 — forked from stevepowell99/
Extracts annotations and highlighted passages in all .pdf files in a folder recursively and outputs them as text files with the same name and modification date
#!/usr/bin/env python
# see
myxkfolder="/home/steve/xk/" #you need to set this to where you want your to-dos to appear
import poppler, os.path, os, time, datetime
for root, dirs, files in os.walk('./'):
for lpath in files:
lambdamusic /
Created October 14, 2015 18:31 — forked from jprante/
JSON-LD in Elasticsearch
curl -XDELETE 'localhost:9200/jsonld'
curl -XPOST 'localhost:9200/jsonld'
curl -XPUT 'localhost:9200/jsonld/doc/1' -d '
"dc": "",
lambdamusic / Evolution of a Python
Last active October 3, 2016 14:49
Evolution of a Python programmer
#Newbie programmer
def factorial(x):
if x == 0:
return 1
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal