Skip to content

Instantly share code, notes, and snippets.

View pierceh89's full-sized avatar
🌊

H.An pierceh89

🌊
View GitHub Profile
@pierceh89
pierceh89 / Fibonacci.java
Created January 22, 2017 06:32
Fibonaci number DP
import java.util.Scanner;
public class Fibonacci {
int[] memoization;
int size;
public Fibonacci(int n) {
size = n;
memoization = new int[size];
computeFibonacci();
@pierceh89
pierceh89 / gist:c3e1b55d624ebc819a905c81eafc8ede
Created February 18, 2017 01:53 — forked from evildmp/gist:3094281
Set up Django, nginx and uwsgi

This document has now been incorporated into the uWSGI documentation:

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using:

@pierceh89
pierceh89 / dynamic_dom.html
Created May 22, 2019 16:01
Dynamic DOM changes by ajax, element move by event
<!DOCTYPE html>
<html lang="ko">
<head>
<title>Dynamic DOM example</title>
<style type="text/css">
.content {
width: 100%;
margin-top: 15px;
overflow: auto;
}
@pierceh89
pierceh89 / fetch_nike_puls_all_activities.bash
Created November 1, 2019 00:43 — forked from niw/fetch_nike_puls_all_activities.bash
A simple NikePlus API description to fetch past run metrics
#!/usr/bin/env bash
# fetch_nike_puls_all_activities.bash
# A simple bash script to fetch all activities and metrics from NikePlus.
# See `nike_plus_api.md` for the API details.
readonly bearer_token="$1"
if [[ -z "$bearer_token" ]]; then
echo "Usage: $0 bearer_token"
exit