Skip to content

Instantly share code, notes, and snippets.

View edubskiy's full-sized avatar

Evgeniy Dubskiy edubskiy

View GitHub Profile
import 'dart:isolate';
void main() async{
ReceivePort receivePort= ReceivePort();
/*
Create new Isolate, just after creating new Isolate control of this main Isolate,
start executing next instructions below the new Isolate creation line,
where as new Isolate keep working in parallel of main/other Isolates
import 'dart:html';
import 'dart:async';
void main() {
final InputElement input = querySelector('input');
final DivElement div = querySelector('div');
final validator = new StreamTransformer.fromHandlers(
handleData: (inputValue, sink) {
@edubskiy
edubskiy / guess-word-stream.dart
Last active July 12, 2020 11:52
Try to guess a word at max 4 times, otherwise you lost
import 'dart:html';
// <h4>Guess the word</h4>
// <input />
// <button>Click me</button>
void main() {
final ButtonElement button = querySelector('button');
final InputElement input = querySelector('input');
import 'dart:async';
class Cake {
}
class Order {
String type;
Order(this.type);
}
@arunoda
arunoda / gist:7790979
Last active February 16, 2024 14:05
Installing SSHPass

Installing SSHPASS

SSHPass is a tiny utility, which allows you to provide the ssh password without using the prompt. This will very helpful for scripting. SSHPass is not good to use in multi-user environment. If you use SSHPass on your development machine, it don't do anything evil.

Installing on Ubuntu

apt-get install sshpass

Installing on OS X

@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active May 7, 2024 01:27
A badass list of frontend development resources I collected over time.
@iros
iros / API.md
Created August 22, 2012 14:42
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method: