Skip to content

Instantly share code, notes, and snippets.

Avatar

Robo deepak1556

  • Microsoft
  • Japan
View GitHub Profile
@utaal
utaal / Makefile
Created Sep 5, 2011
webserver using libuv
View Makefile
webserver: webserver.c libuv/uv.a http-parser/http_parser.o
gcc -I libuv/include \
-lrt -lm -lpthread -o \
webserver webserver.c \
libuv/uv.a http-parser/http_parser.o
libuv/uv.a:
$(MAKE) -C libuv
http-parser/http_parser.o:
@haschek
haschek / .jshintrc
Created May 4, 2012
JSHint Configuration, Strict Edition
View .jshintrc
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true
@spion
spion / a-warning.md
Last active Sep 6, 2021
C++ versus V8 versus luajit versus C benchmark - (hash) tables
View a-warning.md

Warning

This benchmark has been misleading for a while. It was originally made to demonstrate how JIT compilers can do all sorts of crazy stuff to your code - especially LuaJIT - and was meant to be a starting point of discussion about what exactly LuaJIT does and how.

As a result, its not indicative of what its performance may be on more realistic data. Differences can be expected because

  1. the text will not consist of hard-coded constants
View vock_challenge.md

Challenge

So you're mad opensource hacker, spent days and nights working with node.js and/or network protocols. Time to show other people how cool you are!

This file describes all logic of Vock's peer-to-peer protocol (which works over UDP). And there's an issue hidden behind it's lines. Find it, fix it or just get into hacking on Vock - and you'll be awarded! Your name will be in github project's readme and I'll mention your on my twitter account.

Cheers,

Fedor Indutny (https://github.com/indutny)

@binarykitchen
binarykitchen / emscripten_avconv_x264_libvpx
Last active Aug 10, 2018
mad goal: port avconv to javascript (part 1 of 2)
View emscripten_avconv_x264_libvpx
first install x264, libvpx and avconv the normal way without emscripten:
0. install common dependencies
> sudo apt-get install build-essential checkinstall build-dep
1. install yasm
> cd [YOUR PROJECTS FOLDER]
> wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
@boopathi
boopathi / attack.go
Last active Dec 19, 2015
A webpage was trying to get users login details of gmail. So I thought I would just play around. Find the url from the code
View attack.go
package main
import (
"fmt"
"net/http"
"net/url"
"time"
)
type A struct {
@bokmann
bokmann / JRuby Awesome Performance
Last active Jul 11, 2021
brief summary of massive performance improvements with JRuby
View JRuby Awesome Performance
# Thee will be more information here when I share the entire problem space I'm working on, but
# in short, this is preview material for my second talk in a series called "What Computer Scientists Know".
# The first talk is on recursion, and goes through several examples., leading up to a problem based
# on a simple puzzle that initial estimates based on performance of a previous puzzle would take years
# to solve on modern computers with the techniques shown in Ruby. That sets the stage for improving the
# performance of that problem with threading, concurrency, and related tuning.
#
# The second talk is on threading and concurrency, touching on algorithmic performance as well.
# Using some knowledge of the problem (board symmetry, illegal moves, etc), we reduce the problem space
# to about .5% of what we initially thought it was. Still, the initial single threaded solution took more
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active Sep 21, 2021
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!
View whiteboardCleaner.md

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@addyosmani
addyosmani / resources.md
Last active Aug 29, 2015
Polymer resources for FITC
View resources.md

Web Components Can Do That?! extras

Thanks a ton for coming down to my talk, folks <33z. Your energy was amazing. This page has a few extra resources for you.

Slides

http://addyosmani.github.io/fitc-wccdt/

View on_the_viability_of_erlang_releases_and_couchdb.md

On the Viability of Erlang Releases and CouchDB

There has been some discussion on what versions of Erlang CouchDB should support, and what versions of Erlang are detrimental to use. Sadly there were some pretty substantial problems in the R15 line and even parts of R16 that are landmines for CouchDB. This post will describe the current state of things and make some potential recommendations on approach.

Scheduler Collapse