Skip to content

Instantly share code, notes, and snippets.

Chris Feijoo kube

Block or report user

Report or block kube

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View C++ Canonical Class Implementation
<snippet>
<content><![CDATA[
#include "${1}.hpp"
${1}::${1}()
{
}
${1}::${1}(const ${1}& rhs)
View C++ Canonical Class Declaration
<snippet>
<content><![CDATA[
#ifndef ${1/(.*)/(?1\U$1:)/g}_HPP
#define ${1/(.*)/(?1\U$1:)/g}_HPP
class ${1}
{
public:
${1}();
${1}(const ${1}& rhs);
@kube
kube / Makefile.sublime-snippet
Created Jan 15, 2015
Makefile : Sublime Snippet
View Makefile.sublime-snippet
<snippet>
<content><![CDATA[
NAME = ${1:program}
CXX = g++
CXXFLAGS = ${2:-Wall -Werror -Wextra}
SRC = \
${3:main.cpp}
@kube
kube / classHeader.sublime-snippet
Created Jan 15, 2015
Class Header : Sublime Snippet
View classHeader.sublime-snippet
<snippet>
<content><![CDATA[
#ifndef ${1:CLASS}_HPP
#define ${1:CLASS}_HPP
class ${2:ClassName} {
public:
${2:ClassName}();
@kube
kube / mongoAsyncMultiExample.js
Last active Aug 29, 2015
MongoAsyncMultiRequest Example
View mongoAsyncMultiExample.js
var asyncMultiRequest = require('./mongoAsyncMultiRequest.js');
var task = new asyncMultiRequest("mongodb://127.0.0.1:27017/test",
{
insertUser : function(db, next, variables) {
var user = {
firstName : variables.firstName,
lastName : variables.lastName
}
@kube
kube / draw_aa_line.c
Created May 14, 2014
Simple Antialiased-Line Drawing
View draw_aa_line.c
/*#######.
draw_aa_line.c ########",#:
#########',##".
KUBE : www.kube.io ##'##'##".##',##.
Created : Dec 21 2013 23:33:03 ## ## ## # ##",#.
Modified : May 14 2014 16:42:04 ## ## ## ## ##'
## ## ## :##
## ## ##*/
@kube
kube / KubeKhrm.itermcolors
Created Apr 17, 2014
KubeKhrm iTermColors
View KubeKhrm.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.30093687772750854</real>
<key>Green Component</key>
<real>0.36639997363090515</real>
You can’t perform that action at this time.