Skip to content

Instantly share code, notes, and snippets.

View htmlboss's full-sized avatar
📈
RIP VelocityShares Daily 2x VIX Short Term ETN ($TVIX)

Nabil htmlboss

📈
RIP VelocityShares Daily 2x VIX Short Term ETN ($TVIX)
  • Amazon Robotics
  • Newfoundland, Canada
  • 03:24 (UTC -03:30)
View GitHub Profile
@htmlboss
htmlboss / GPUProgram.cpp
Created December 9, 2018 21:58
OpenGL shader wrapper in C++17. It also scans and caches active shader uniforms in getUniforms() for fast lookups when rendering.
#include "GPUProgram.hpp"
#include "Shader.hpp"
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#include <array>
/***********************************************************************************/
@htmlboss
htmlboss / thread_pool.h
Created May 21, 2017 02:06
C++11/14 Thread Pool
// https://www.reddit.com/r/cpp/comments/6caavw/a_tiny_c_thread_pool_welcome_to_star_and_fork/dht7c45/
//
// Pool.h
//
#ifndef Tools_Thread_Pool_h
#define Tools_Thread_Pool_h
// ================================================================================ Standard Includes
@htmlboss
htmlboss / merge_sort.cpp
Last active October 7, 2016 13:20
Stable Merge Sort using C++14
#include <algorithm>
#include <iterator>
#include <functional>
template<typename BiDirIt, typename Compare = std::less<> >
void Merge_Sort(BiDirIt first, BiDirIt last, Compare comp = Compare {}) {
const auto n = std::distance(first, last);
if (n > 1) {
@htmlboss
htmlboss / di-fm-premium-account-generator.sh
Created April 14, 2016 22:03 — forked from hackruu/di-fm-premium-account-generator.sh
Generate di.fm premium account and playlist. Also supports radiotunes.com (ex sky.fm) and jazzradio.com.
#!/bin/bash
AGENT="AudioAddict-di/1.4.7 iOS/8.1"
COOKIES="./cookies.txt"
AUTH="ephemeron:dayeiph0ne@pp"
DOMAIN=gmail.com
PLAYLISTDI="di.fm.m3u"
PLAYLISTSKY="sky.fm.m3u"
PLAYLISTJAZZ="jazzradio.m3u"
PLAYLISTROCK="rockradio.m3u"
JSONDI="http://listen.di.fm/premium_high.json"