Skip to content

Instantly share code, notes, and snippets.

View tranductam2802's full-sized avatar
🔥
Fulltime Mobile Developer! Part-time Poker dealer

Trần Đức Tâm tranductam2802

🔥
Fulltime Mobile Developer! Part-time Poker dealer
View GitHub Profile
(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()) {
@tranductam2802
tranductam2802 / install-ruby-2_5_1-with_rbenv.sh
Last active August 23, 2018 08:04 — forked from turadg/install-ruby-2.0.0.sh
Install Ruby (default 2.2) with Readline and latest OpenSSL (環境管理ツールのrbenvを作成する)
#!/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
@tranductam2802
tranductam2802 / bottle_hello.py
Created August 9, 2018 08:06 — forked from drgarcia1986/bottle_hello.py
Python HelloWorld (WebFrameworks) Collection
# -*- coding: utf-8 -*-
from bottle import route, run
@route('/')
def index():
return '<h1>Hello World/h1>'
run(host='localhost', port=8000)
@tranductam2802
tranductam2802 / executors.dart
Created January 15, 2021 06:32 — forked from slightfoot/executors.dart
Executors in Dart for Flutter
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');
@tranductam2802
tranductam2802 / executors.dart
Created January 15, 2021 06:32 — forked from slightfoot/executors.dart
Executors in Dart for Flutter
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');