Skip to content

Instantly share code, notes, and snippets.

View nurrony's full-sized avatar

Nur Rony nurrony

View GitHub Profile
@nurrony
nurrony / redmine gitlab sync
Created November 17, 2016 07:37 — forked from jakimowicz/redmine gitlab sync
simple (and dirty) sync between redmine issues and gitlab issues
#!/usr/bin/env ruby
require 'faraday'
require 'json'
require 'gitlab'
module Redmine
Host = nil
APIKey = nil
@nurrony
nurrony / latency.markdown
Created November 10, 2016 08:06 — forked from hellerbarde/latency.markdown
Latency numbers every programmer should know

Latency numbers every programmer should know

L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns             
Compress 1K bytes with Zippy ............. 3,000 ns  =   3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns  =  20 µs
SSD random read ........................ 150,000 ns  = 150 µs

Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs

@nurrony
nurrony / multi-layout.js
Created September 29, 2016 14:23
React Starter Kit
export const createRoutes = (store) => ({
path: '/',
component: BaseLayout,
childRoutes: [
{
component: CoreLayout,
childRoutes: [
CounterRoute(store)
]
},
@nurrony
nurrony / app.js
Created September 7, 2016 17:20 — forked from brianfeister/app.js
Angular Upload with Image Crop
angular.module('cropAndUpload', [
'angularFileUpload',
'ngImgCrop'
])
var Col = require('react-bootstrap/lib/Col')
var PageHeader = require('react-bootstrap/lib/PageHeader')
var React = require('react')
var Row = require('react-bootstrap/lib/Row')
var {connect} = require('react-redux')
var {reduxForm} = require('redux-form')
var DateInput = require('./DateInput')
var FormField = require('./FormField')
var LoadingButton = require('./LoadingButton')
@nurrony
nurrony / index.html
Last active July 19, 2016 07:06
React vs JQuery
<!DOCTYPE html>
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<meta charset="utf-8">
<title>JS Bin</title>
<style>
#jquery-component .alert {
display: none;
}

Keybase proof

I hereby claim:

  • I am nmrony on github.
  • I am nmrony (https://keybase.io/nmrony) on keybase.
  • I have a public key ASCLsR0NxokpdoMSn4GGd7qNwSAhMWgipiz5qLUbbGtrqAo

To claim this, I am signing this object:

@nurrony
nurrony / couchdb-nginx-proxy-ssl.conf
Last active July 5, 2016 18:34 — forked from Overbryd/nginx.conf
Nginx configuration for a CouchDB reverse proxy, also very useful for hosting CouchApps
worker_processes 4;
events {
worker_connections 1024;
}
http {
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
<html>
<head>
<style>
.item {width:300px; display: inline-block; }
.item .itemtitle {font-weight:bold; font-size:2em;}
.hidden {display:none;}
</style>
</head>
<body>
<h1>Amalgam Comics Characters</h1>