Skip to content

Instantly share code, notes, and snippets.

View Shavakan's full-sized avatar

ChangWon Lee Shavakan

View GitHub Profile

Keybase proof

I hereby claim:

  • I am shavakan on github.
  • I am changwonlee (https://keybase.io/changwonlee) on keybase.
  • I have a public key ASDHrpil81T3Mcn6-09IC_zvwBaLFakwyfrqt6ToYJViWQo

To claim this, I am signing this object:

@Shavakan
Shavakan / sex.c
Last active November 30, 2016 13:05
enum gender {
premature,
male,
female
}
int sex() {
return fork();
}
@Shavakan
Shavakan / final_version_realfinal_version2_final
Last active April 8, 2016 03:22
Budgetdata Database Schema
Programs
- name : String
- value : Number
- region : { name_kr : String,
name_en : String,
ref : ObjectId/Regions }
- budget : { year : Number,
ref : ObjectId/Budgets }
- categories : [ { name : String,
ref : ObjectId/Categories } ]
BASE URL: /apis/v1/
GET /
Query:
Data: [{name_kr, name_en}]
Description:
- Finds list of all regions.
GET /[A-z]+/
URL:
/list/data/ : Budgetmap data pipeline (ordered by prioroty)
: 1) List existing data sets (by region + year)
: 2) Add new budget data (year)
: 3) Add new region
: 4) Report errors in existing data
: - e.g. incorrect region, incorrect year, incorect budget data, invalid budget data
: CREATE, UPDATE, DELETE
/api/data/ : API server for budget data access, update
: READ
// Apache2 설치 (2.4 버전)
$ sudo apt-get install apache2
// 운영체제에 따른 HHVM 설치: HHVM Documentation 참고
$ sudo apt-get install hhvm
// PHP5와 Apache2 PHP5 module 설치
$ sudo apt-get install php5
$ sudo apt-get install libapache2-mod-php5
@Shavakan
Shavakan / gist:57b8511ad16ca1d7c254
Last active August 29, 2015 14:22
Shavakan/seminar_django.git - Part II (http://sparcs.org/seminar/ - Django Seminar Part II by undead, 2015)
<templates/base.html>
...
(line 9)
<script src="..."></script>
{% block js %}
{% endblock %}
</head>
...
========================================================================================================
$ virtualenv env
$ source env/bin/activate
# If a requirements.txt exists
$ pip install -r requirements.txt