Skip to content

Instantly share code, notes, and snippets.

View d3v-null's full-sized avatar

Dev Null d3v-null

View GitHub Profile
@d3v-null
d3v-null / cloak.ovpn
Last active June 28, 2018 00:00
This is an OpenVPN settings file for Cloak. Forked for compatibility the OpenVPN client in ASUS RT routers
client
dev tun
comp-lzo
auth-user-pass
# remote-cert-tls server
server-poll-timeout 10
auth-nocache
auth-retry interact
verb 1
remote openvpn.getcloakvpn.com 443 udp
#include <string>
#include <map>
#include <utility>
#include <sstream>
#include <iostream>
#include <fstream>
// #include <pair>
using namespace std;
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#include "Expression_Tree.h"
#include <iostream>
#include <stack>
#include <string>
#include <iomanip>
using namespace std;
bool isDigit(char ch) {
return (ch >='0' && ch <= '9');
}
class ETNode {
public:
char value;
ETNode *left, *right;
ETNode(char value_);
ETNode(char value_, ETNode* left_, ETNode* right_);
};
// A very simple expression tree class that converts a parenthesized input
// consisting of addition and multiplication operations, into an expression tree.
input[ 0 ] = '2'
st = [ ]
t = { 'value': '2' }
input[ 1 ] = '+'
st = [
{ 'value': '2' } ]
t = { 'value': '+' }
input[ 2 ] = '('
@d3v-null
d3v-null / 0_reuse_code.js
Last active June 1, 2017 01:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@d3v-null
d3v-null / .htaccess
Last active June 27, 2017 04:23
Here's how to fix 404s caused by disabling qTranslatex plugin. Change en|fr to a list of | separated language codes.
# BEGIN Derwent qTranslatex mods
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(en|fr)(/.*|)$ $2 [L,NC,R=301]
</IfModule>
# END Derwent qTranslatex mods
@d3v-null
d3v-null / 1_notmnist_derwent.ipynb
Created June 22, 2017 02:02
My solutions to the Udacity Tensor Flow Assignment 1
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d3v-null
d3v-null / .zshrc
Last active May 9, 2019 00:59
My macOS setup. Run commands from setup.sh
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# ZSH customization
ZSH_THEME="powerlevel9k/powerlevel9k"
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="yyyy-mm-dd"
plugins=(git, zsh-autosuggestions, zsh-syntx-highlighting, brew, npm, z, colorize, autopep8, cabal, dirhistory, lein, macports, osx, perl, pep8, python, pip, sublime, taskwarrior, wd, vi-mode, zsh_reload)
bindkey -v
source $ZSH/oh-my-zsh.sh