Skip to content

Instantly share code, notes, and snippets.

View codito's full-sized avatar
🐢
https://codito.in/now

codito

🐢
https://codito.in/now
View GitHub Profile
@codito
codito / RunningTestForPublishedProject.md
Created October 3, 2017 04:14
Running tests from published project
> mkdir g:\tmp\trial
> cd g:\tmp\trial
> dotnet --info
.NET Command Line Tools (2.0.2-vspre-006949)

Product Information:
 Version:            2.0.2-vspre-006949
 Commit SHA-1 hash:  23fc6ec23d
@codito
codito / pyembed.c
Last active March 16, 2024 20:29
A simple embedded python interpreter
// Demo a simple embedded python interpreter
// See this post for context: http://codito.in/notes-on-vim-python-interop
//
// Compile with: gcc $(python-config --cflags --ldflags) pyembed.c -o pyembed
// Tested on python 3.6 in arch linux
//
// See https://docs.python.org/3/c-api/init.html for details of APIs.
//
#include <Python.h>
@codito
codito / convert.py
Last active May 16, 2020 07:51
Utility to convert DV1-TTSurekh font to devanagari unicode
# -*- coding: utf-8 -*-
#!/usr/bin/env python2
# usage:
# mkdir /tmp/trial
# git clone https://github.com/sushant354/indic2unicode
# sudo pacman -S python2-ply
# # copy the below code in /tmp/trial and save as convert.py
# cd /tmp/trial
# python2 convert.py input.txt output.txt