This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:isolate'; | |
void main(List<String> arguments) async { | |
Executor executor = await Executor.create(); | |
executor.run(Task('Name 1', task1)); | |
executor.run(Task('Name 2', task2)); | |
executor.run(Task('Name 3', task3)); | |
print('sent'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:isolate'; | |
void main(List<String> arguments) async { | |
Executor executor = await Executor.create(); | |
executor.run(Task('Name 1', task1)); | |
executor.run(Task('Name 2', task2)); | |
executor.run(Task('Name 3', task3)); | |
print('sent'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from bottle import route, run | |
@route('/') | |
def index(): | |
return '<h1>Hello World/h1>' | |
run(host='localhost', port=8000) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
echo '# Update the newest brew tool' | |
brew update | |
echo '# Upgrade any that were already installed' | |
brew upgrade rbenv ruby-build readline openssl | |
echo "# Install what's missing" | |
brew install rbenv ruby-build readline openssl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
'use strict'; | |
if (location.host !== 'daynhauhoc.com') { | |
const checkHost = confirm('Bookmarklet does not work on this page.\nDo you want to open DayNhauHoc?'); | |
if (checkHost) top.location.href = 'https://daynhauhoc.com'; | |
return; | |
} | |
if (!Discourse.User.current()) { |