Skip to content

Instantly share code, notes, and snippets.

View PeterTillema's full-sized avatar

Peter Tillema PeterTillema

View GitHub Profile
@PeterTillema
PeterTillema / actual_output.py
Last active September 29, 2021 07:18
String array to char array
[[[['a' 'b']
['c' 'd']
['e' 'f']
['g' 'h']
['i' 'j']]
[['k' 'l']
['m' 'n']
['o' 'p']
['q' 'r']
@PeterTillema
PeterTillema / compress.sh
Created July 20, 2021 18:28
Prototype or not?
java -jar compiler.jar \
--externs extern.js \
--compilation_level ADVANCED_OPTIMIZATIONS \
--js=main.js \
--js_output_file=out.js
@PeterTillema
PeterTillema / leaflet-extern.js
Last active July 20, 2021 19:34
Leaflet extern
/**
* Extern file for Leaflet, an open-source Javascript library for mobile-friendly
* interactive maps.
*
* @externs
*/
/**
* @constructor
*/
/**
* MIT License
*
* Copyright (c) 2021 Peter Tillema
*
* 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
https://docs.google.com/document/d/18nVDz1mtYw04odErdSzvp_x5GSkAYppmcU6cf3NxU9k/edit?usp=sharing