Skip to content

Instantly share code, notes, and snippets.

@guilhermepontes
guilhermepontes / readme.md
Last active November 27, 2022 21:02
Get the old VSCode back on macOS

Get the old VSCode icon back!! 🔥 🔥

First download the new old icon: https://cl.ly/mzTc (based on this)

You can also use the icon you want, but you need to convert it to .icns. You can use this service to convert PNG to ICNS.

Go to Applications and find VSCode, right click there and choose Get Info. Drag 'n drop the new icon.

package main
import (
"fmt"
"image"
"image/color"
"os"
"time"
"github.com/faiface/pixel"
GO VERSION 1.7 - BENCHMARKING zeromq/goczmq
--------------------------------------------
go version
go version go1.7.1 linux/amd64
BenchmarkChanneler-8 200000 5371 ns/op 190.64 MB/s
BenchmarkPollerSendFrame1k-8 500000 2863 ns/op 357.62 MB/s
BenchmarkPollerSendFrame4k-8 300000 4063 ns/op 1008.04 MB/s
BenchmarkPollerSendFrame16k-8 200000 8259 ns/op 1983.66 MB/s
BenchmarkProxySendFrame1k-8 1000000 2328 ns/op 439.78 MB/s
@wang-zhijun
wang-zhijun / golang.md
Last active June 29, 2018 15:43
Golang

Golangのbuffered channelを使ってLockすることができる。 buffered channelのサイズを1に指定して、複数のgoroutinesの間で同期する

package main

import (
        "fmt"
        "time"
)
@jessfraz
jessfraz / proposal.md
Last active September 15, 2017 02:59

Self isolating binaries

This is a play proposal for a new wrapper around go build that would build your binary but wrap it in code that would prepare isolation around your binary on run.

A concept of this is in https://github.com/jfrazelle/binctr, in that it takes a docker image and embeds the contents into a final binary so you have a self-contained binary.

The binctr example is unnessesarily heavy for go binaries because all you need is a completely static binary.

@dustinvtran
dustinvtran / tensorflow_api.csv
Created August 13, 2016 00:25
List of all TensorFlow operations
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 1 column, instead of 2 in line 4.
# TensorFlow r0.10
#
# Building Graph
#
add_to_collection,tf.add_to_collection
as_dtype,tf.as_dtype
bytes,tf.bytes
container,tf.container
control_dependencies,tf.control_dependencies
convert_to_tensor,tf.convert_to_tensor
@damianesteban
damianesteban / simpleLens.swift
Last active April 23, 2017 18:19
Example of a simple lens in Swift 3
// Concepts based on an excellent article by Maciej Konieczny.
// http://narf.pl/posts/lenses-in-swift
struct ComicBook {
let title: String
let issueNumber: Int
let publisher: Publisher
}
struct Publisher {
@meteochu
meteochu / UIImage.Effects.swift
Last active February 15, 2019 13:37
Apple's UIImageEffect in Swift using iOS 10's new UIGraphicsImageRenderer
//
// UIImage.Effects.swift
//
//
// Created by Andy Liang on 2016-06-19.
//
//
import UIKit
import Accelerate
@tomokishii
tomokishii / IRIS_logistic_regression.md
Last active September 24, 2021 17:35
TensorFlow Logistic Regression

Logistic Regression Demo by TensorFlow

Logistic Regression is the basic concept of recent "Deep" neural network models. I rechecked TensorFlow L.R. coding to classify IRIS dataset.

  • Binary Classification problem - iris_lr.py
  • Multi-class Classification problem - iris_lr_softmax.py
@scturtle
scturtle / tf.ipynb
Created February 19, 2016 11:35
multiclass classification using tensorflow
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.