Skip to content

Instantly share code, notes, and snippets.

Alex CHEN viennadd

Block or report user

Report or block viennadd

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
viennadd /
Last active Apr 27, 2017
gnome display scale factor setting (on retina display)
gsettings set org.gnome.desktop.interface scaling-factor 2
viennadd /
Created Aug 14, 2016
Renew My TP-Link IP
import os
import re
import time
import requests
GlobalVars = {
'HTTP_ADDRESS': 'http://192.168.----',
'AUTHORIZATION': 'Basic ============'
View SnakeGame.cpp
#include <deque>
#include <iostream>
#include <thread>
#include <chrono>
#include <random>
using namespace std;
class Snake;
class SnakeGame;
View Longest_common_subsequence.cpp
/* DP Execrise */
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
const int MAX_M = 1000;
const int MAX_N = 1000;
View Longest_increasing_subsequence.cpp
/* DP Execrise */
#include <iostream>
using namespace std;
const int MAX_LEN = 1000;
int seq[MAX_LEN];
int lis[MAX_LEN];
int main()
View Heap.h
// Created by vienna on 4/4/2016.
/* heap data structure implementation */
/* start with index 0, then it need +1 and +2
* to locate left and right child */
inline int left(int i)
You can’t perform that action at this time.