Skip to content

Instantly share code, notes, and snippets.

View charleshan's full-sized avatar
🚀
Working on AskAnything.to

Charles Han charleshan

🚀
Working on AskAnything.to
View GitHub Profile
@charleshan
charleshan / private_fork.md
Created April 22, 2020 22:18 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

void main() {
runApp(_SwitchingThemeApp());
}
/// Properties that help me keep track of the example being run.
bool _useMaterial = false;
class _SwitchingThemeApp extends StatefulWidget {
@override
_SwitchingThemeAppState createState() => _SwitchingThemeAppState();
@charleshan
charleshan / news_rss.py
Created February 8, 2019 08:25 — forked from koorukuroo/news_rss.py
Korean News RSS URLs
### 출처
# http://blog.opid.kr/427
# 400, 403, 404 에러가 없는 url만 간추림
### 언론사 리스트
# 중앙일보 | 구글뉴스 | 에이빙뉴스 | 중부매일 | 에버뉴스 |
# 경향닷컴 | 데이터넷 | 세계일보 | 뉴스위드 | 뉴스포스트 |
# 르몽드 디플로마티크 | 컨슈머타임스 | MBC | 한국아이닷컴 | 노컷뉴스 |
# K모바일 | 탑라이더 | 한국경제 | 동아닷컴 | 엑스포저널 |
@charleshan
charleshan / lists-show-test.js
Created April 10, 2015 20:37
Meteor Velocity Mocha testing: todo sample application create a new task
if (!(typeof MochaWeb === 'undefined')){
MochaWeb.testOnly(function(){
describe("lists-show", function(){
it("creates a new task", function(){
Template.appBody.fireEvent('click .js-new-list');
var form = $("<form></form>");
var obj = $('<input/>').attr('type', 'text').val('item 1');
form.append(obj);
Template.listsShow.fireEvent('submit .js-todo-new', {
event: {