Skip to content

Instantly share code, notes, and snippets.

View u1aryz's full-sized avatar
Unemployed

u1aryz u1aryz

Unemployed
View GitHub Profile
@u1aryz
u1aryz / WebApplicationHistory.md
Last active October 27, 2023 07:44
Web Application History
Web Server Interface Middleware(main) Programming Language
Apache ~ CGI - Various
- mod_perl Perl
- mod_php PHP
- mod_ruby Ruby
- mod_python Python
PSGI Plack Perl
Java Servlet API Tomcat Java
Nginx ~ FastCGI PHP-FPM PHP
@u1aryz
u1aryz / use_future_fn.dart
Last active February 21, 2022 07:44
Flutter hooks that runs future at any time (react-use inspiration)
import 'package:flutter/widgets.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
typedef FunctionReturning0<T> = Future<T> Function();
typedef FunctionReturning1<T, S> = Future<T> Function(S arg);
typedef FunctionReturning2<T, S1, S2> = Future<T> Function(S1 arg1, S2 arg2);
typedef FunctionReturning3<T, S1, S2, S3> = Future<T> Function(
S1 arg1, S2 arg2, S3 arg3);
class FutureFnState0<T> {
@u1aryz
u1aryz / main.go
Last active November 23, 2019 08:17
Print dot alias all pattern of gmail(G Suite).
package main
import (
"flag"
"fmt"
"math"
"os"
"strings"
)
@u1aryz
u1aryz / app-base.css
Created August 22, 2013 04:52
Windows 8 Loading Animation ( Webkit )
body {
background: #111;
}
.loader {
position: relative;
padding-top: 100px;
width: 40px;
margin: auto;
}
.loader .circle {
@u1aryz
u1aryz / build.gradle
Created May 22, 2013 01:43
ライブラリプロジェクトをローカルのmavenリポジトリにデプロイするスクリプト(これはおそらく邪道である)
apply plugin: 'android-library'
dependencies {
compile 'com.google.android:support-v4:r7'
}
android {
compileSdkVersion 14
buildToolsVersion '17'
@u1aryz
u1aryz / build.gradle
Last active December 10, 2015 11:38
build.gradle for Slim3 + JPP
apply plugin: "java"
sourceCompatibility = 1.6
targetCompatibility = 1.6
buildDir = "target"
def slim3Version = "1.0.+"
def appengineVersion = "1.7.+"
def jppVersion = "1.5.+"
@u1aryz
u1aryz / gist:2644671
Created May 9, 2012 13:56
Ultra simple HttpServer.
package jp.u1aryz.products.samples.httpserver;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;
/**