Skip to content

Instantly share code, notes, and snippets.

Kiswono Prayogo kokizzu

Block or report user

Report or block kokizzu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kokizzu
kokizzu / introrx.md
Created Sep 23, 2019 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
View introrx.md
View graceful-shutdown.go
// old version: https://marcofranssen.nl/go-webserver-with-gracefull-shutdown/
package main
import (
"context"
"log"
"net/http"
"os"
"os/signal"
View rdhcpd.rb
' Copyright (c) 2007, Tony Ivanov
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
@kokizzu
kokizzu / React Native: Animated - Code
Created Mar 31, 2017 — forked from sahrens/React Native: Animated - Code
Example code from ReactEurope 2015 talk - React Native: Animated
View React Native: Animated - Code
/**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
@kokizzu
kokizzu / frp.md
Created Feb 20, 2017 — forked from ohanhi/frp.md
Learning FP the hard way: Experiences on the Elm language
View frp.md

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

@kokizzu
kokizzu / web-servers.md
Created Dec 22, 2016 — forked from willurd/web-servers.md
Big list of http static server one-liners
View web-servers.md

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
View github-upstream-fork-fetcher.rb
#!/usr/bin/env ruby
require 'json'
require 'ap'
username = 'kokizzu'
ap "Fetch API users/#{username}/repos"
repos = `curl -s https://api.github.com/users/#{username}/repos?per_page=200`
View redis_pubsub_demo.rb
# Author: Pieter Noordhuis
# Description: Simple demo to showcase Redis PubSub with EventMachine
#
# Update 7 Oct 2010:
# - This example does *not* appear to work with Chrome >=6.0. Apparently,
# the WebSocket protocol implementation in the cramp gem does not work
# well with Chrome's (newer) WebSocket implementation.
#
# Requirements:
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby
@kokizzu
kokizzu / chat.go
Created Nov 10, 2016 — forked from drewolson/chat.go
simple golang chat server
View chat.go
package main
import (
"bufio"
"net"
)
type Client struct {
incoming chan string
outgoing chan string
@kokizzu
kokizzu / .lua
Created Aug 5, 2016 — forked from pateltej/.lua
Lua in 15 minutes
View .lua
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
You can’t perform that action at this time.