Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
func heapSort(arr []int, l int) { | |
for i := l / 2; i >= 0; i-- { |
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
func quickSort(arr []int) (s []int) { | |
l := len(arr) |
package main | |
import "fmt" | |
func mergeSort(arr []int) []int { | |
l := len(arr) | |
if l <= 1 { | |
return arr | |
} | |
mid := l / 2 |
package main | |
import "fmt" | |
func insertionSort(a []int) { | |
if len(a) <= 1 { | |
return | |
} | |
for i := 1; i < len(a); i++ { | |
iVal := a[i] |
took: 3 | |
timed_out: false | |
_shards: | |
total: 5 | |
successful: 5 | |
failed: 0 | |
hits: | |
total: 5 | |
max_score: 0.2972674 | |
hits: |
require "net/http" | |
def start_server | |
# Remove the X to enable the parameters for tuning. | |
# These are the default values as of Ruby 2.2.0. | |
@child = spawn(<<-EOC.split.join(" ")) | |
XRUBY_GC_HEAP_FREE_SLOTS=4096 | |
XRUBY_GC_HEAP_INIT_SLOTS=10000 | |
XRUBY_GC_HEAP_GROWTH_FACTOR=1.8 | |
XRUBY_GC_HEAP_GROWTH_MAX_SLOTS=0 |
var parser = document.createElement('a'); | |
parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
parser.protocol; // => "http:" | |
parser.hostname; // => "example.com" | |
parser.port; // => "3000" | |
parser.pathname; // => "/pathname/" | |
parser.search; // => "?search=test" | |
parser.hash; // => "#hash" | |
parser.host; // => "example.com:3000" |
FIXME: | |
WARNING: Nokogiri was built against LibXML version 2.7.3, but has dynamically loaded 2.7.8 | |
or | |
ERROR -: Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0 | |
gem uninstall nokogiri libxml-ruby | |
brew update | |
brew uninstall libxml2 |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(41deg, #f06, blue); | |
min-height: 100%; |