Skip to content

Instantly share code, notes, and snippets.

View nmichaud's full-sized avatar

Naveen Michaud-Agrawal nmichaud

View GitHub Profile
@nmichaud
nmichaud / bundle.js
Last active September 11, 2020 16:30
Lumino TabBar with plus buttons
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
@nmichaud
nmichaud / bundle.js
Last active September 11, 2020 16:31
Without deprecated p-* CSS selectors
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
@nmichaud
nmichaud / bundle.js
Created August 17, 2020 18:55
Deprecated CSS selectors
This file has been truncated, but you can view the full file.
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
@nmichaud
nmichaud / datagrid.js
Last active August 13, 2020 03:23
Linked rendering
/*! For license information please see datagrid.js.LICENSE.txt */
!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./lib/",n(n.s=114)}([function(t,e){"function"==typeof Objec
@nmichaud
nmichaud / copyUint8ArrayToUint32Array.js
Created January 21, 2018 01:05 — forked from ts-web/copyUint8ArrayToUint32Array.js
Copy UInt8Array to UInt32Array
var i8, i32, byte1, byte2, byte3, byte4, bits32;
function copyUint8ArrayToUint32Array (uint8, uint32) {
if (!uint8 || !uint32 || uint8.byteLength !== uint32.byteLength) {
return false;
}
for (i8 = 0, i32 = 0; i8 <= uint8.length; i32++) {
byte1 = uint8[i8++];
byte2 = uint8[i8++];
byte3 = uint8[i8++];
byte4 = uint8[i8++];
@nmichaud
nmichaud / introrx.md
Created March 24, 2016 16:28 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
  1. General Background and Overview
@nmichaud
nmichaud / gist:6567898
Created September 15, 2013 03:57
New python datasource support in mapnik python bindings
"""A more complex example which renders an infinite series of concentric
circles centred on a point.
The circles are represented by a Python iterator which will yield only the
circles which intersect the query's bounding box. The advantage of this
approach over a MemoryDatasource is that a) only those circles which intersect
the viewport are actually generated and b) only the memory for the largest
circle need be available since each circle is created on demand and destroyed
when finished with.
"""
@nmichaud
nmichaud / boost_8290.patch
Last active December 20, 2015 16:39
Boost patch for multithreaded GIL release
------------------------------------------------------------------------
r84968 | danieljames | 2013-07-07 12:46:48 +0100 (Sun, 07 Jul 2013) | 2 lines
Python GIL not acquired before freeing shared_ptr, causes crash
------------------------------------------------------------------------
--- 1_54_0/boost/thread/win32/thread_primitives.hpp (revision 84967)
+++ 1_54_0/boost/thread/win32/thread_primitives.hpp (revision 84968)
--- 1_54_0/libs/python/src/converter/builtin_converters.cpp (revision 84967)
+++ 1_54_0/libs/python/src/converter/builtin_converters.cpp (revision 84968)
@nmichaud
nmichaud / gist:2855721
Created June 1, 2012 23:26
proper cleanup in qtreactor
class QtReactor(posixbase.PosixReactorBase):
implements(IReactorFDSet)
def __init__(self):
"""
# Workaround for some bugs that prevent proper cleanup when stop is
# called
"""
...