Skip to content

Instantly share code, notes, and snippets.

🎯
tryin' my best

Pramod Kotipalli p13i

🎯
tryin' my best
View GitHub Profile
@fatso83
fatso83 / format-code.gs
Last active May 31, 2020
Styles a paragraph as code. When adding this script using the Google Docs script editor it will appear under a new menu called "Extras"
View format-code.gs
// is called by google docs when a document is open
// adds a menu with a menu item that applies a style to the currently selected text
function onOpen() {
DocumentApp.getUi()
.createMenu('Extras')
.addItem('Apply code style', 'applyCodeStyle')
.addToUi();
}
var backgroundColor = "#DDDDDD";
@p13i
p13i / JSON.swift
Created Feb 15, 2018
Simple JSON wrapper for Foundation's JSONEncoder and JSONDecoder
View JSON.swift
//
// JSON.swift
//
// Created by Pramod Kotipalli on 11/1/17.
// Copyright © 2017 Pramod Kotipalli. All rights reserved.
//
import Foundation
public class JSON {
@physacco
physacco / README.md
Last active Jul 2, 2020
Python 3 extension example
View README.md

Python 3 extension example

Build

python3 setup.py build

Output: build/lib.macosx-10.11-x86_64-3.5/hello.cpython-35m-darwin.so

Run

You can’t perform that action at this time.