Skip to content

Instantly share code, notes, and snippets.

View cionman's full-sized avatar

suwoni cionman

  • Incheon, South Korea
View GitHub Profile
@cionman
cionman / .travis.yml
Created March 20, 2018 05:46 — forked from kyunooh/.travis.yml
Django .travis.yml example
# 어떤 언어를 사용할 지 정의 합니다.
language: python
# 사용할 파이썬 버전을 적어줍니다.
python:
- "3.4"
- "3.5"
# command to install dependencies
# OS(trusty - Ubuntu 14.0.4 LTS)와 기타 환경설정을 정의 합니다.
@cionman
cionman / yourapp
Created March 19, 2018 09:17 — forked from leplatrem/yourapp
gunicorn virtualenv init.d script (could be simpler with upstart)
#! /bin/bash
### BEGIN INIT INFO
# Provides: yourapp
# Required-Start: nginx
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: The main django process
# Description: The gunicorn process that receives HTTP requests
# from nginx
@cionman
cionman / HOWTO.md
Created March 9, 2018 13:42 — forked from cvan/HOWTO.md
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default

Instructions

CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.

  1. Make sure you have registered a domain name.
  2. Sign up for CloudFlare and create an account for your domain.
  3. In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
  4. From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
  5. If you
@cionman
cionman / HOWTO.md
Created March 9, 2018 13:42 — forked from cvan/HOWTO.md
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default

Instructions

CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.

  1. Make sure you have registered a domain name.
  2. Sign up for CloudFlare and create an account for your domain.
  3. In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
  4. From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
  5. If you
@cionman
cionman / app.html
Created February 8, 2018 03:02 — forked from fureweb-com/app.html
CodeSpitz 74 - 6강 코드
<html>
<head></head>
<body>
<section id="stage">
</section>
<nav id="controller">
<button class="up"></button>
<button class="down"></button>
@cionman
cionman / google-map-search.py
Created January 26, 2018 09:42 — forked from mcchae/google-map-search.py
Some python selenium examples
#!/usr/bin/env python
################################################################################
import sys
from time import sleep
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.common.exceptions import NoSuchElementException
@cionman
cionman / index.html
Last active December 2, 2017 13:09
구글계정으로 가입 및 로그인 작성
<script>
/**
* FirebaseChat ES5 클래스
*/
function FirebaseChat(){
this.init();
this.initEvent();
}
/**
location.href='togetherstalk://setAlarmForRoom?val='+ vRoomNoti;
location.href='togetherstalk://setAlarmForRoom?val='+ !vRoomNoti +'&notiSettingId='+ notiSettingId;
@cionman
cionman / 0_reuse_code.js
Created March 13, 2017 04:12
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