git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| import 'dart:core'; | |
| import 'dart:async'; | |
| import 'dart:io'; | |
| void startServer() { | |
| Future<ServerSocket> serverFuture = ServerSocket.bind('0.0.0.0', 55555); | |
| serverFuture.then((ServerSocket server) { | |
| server.listen((Socket socket) { | |
| socket.listen((List<int> data) { | |
| String result = new String.fromCharCodes(data); |
| #-*- coding: utf-8 -*- | |
| import subprocess | |
| if __name__ == '__main__': | |
| ps = subprocess.Popen(['nodejs','ps2.js'], stdin=subprocess.PIPE, stdout=subprocess.PIPE) | |
| out = ps.communicate(input='http://www.daum.net'.encode())[0] | |
| print(out.decode('utf-8')) |
| from django.contrib import admin | |
| from django.contrib.flatpages.models import FlatPage | |
| # Note: we are renaming the original Admin and Form as we import them! | |
| from django.contrib.flatpages.admin import FlatPageAdmin as FlatPageAdminOld | |
| from django.contrib.flatpages.admin import FlatpageForm as FlatpageFormOld | |
| from django import forms | |
| from ckeditor.widgets import CKEditorWidget |
| #!/bin/bash | |
| for filename in *.vtt; do | |
| fname="${filename%.*}" | |
| ffmpeg -i "$filename" "$fname.srt" | |
| done |
| var canvasWidth = 1200; | |
| var canvasHeight = 1024; | |
| function setup() { | |
| createCanvas(canvasWidth, canvasHeight); | |
| } | |
| function draw() { | |
| stroke("#DCA6A6"); | |
| strokeWeight(0.1); |
| function isPrime(value) { | |
| // create cache | |
| if (!isPrime.answers) { | |
| isPrime.answers = {}; | |
| } | |
| // check was value cached | |
| if (isPrime.answers[value] !== undefined) { | |
| return isPrime.answers[value]; | |
| } |
| let store = { | |
| nextId: 1, | |
| cache: {}, | |
| add(fn) { | |
| if(!fn.id) { | |
| fn.id = this.nextId++; | |
| this.cache[fn.id] = fn; | |
| } | |
| return false; | |
| }, |
| html, | |
| body { | |
| margin: 0; | |
| padding: 0; | |
| } | |
| body { | |
| width: 280px; | |
| min-height: 250px; | |
| padding-top: 50px; |