Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Steven Ferrer stevenferrer

🎯
Focusing
Block or report user

Report or block stevenferrer

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
View start.sh
#!/bin/bash
python ./src/app.py
@stevenferrer
stevenferrer / http-proxy.go
Created Sep 18, 2019 — forked from fabrizioc1/http-proxy.go
Http proxy server in Go
View http-proxy.go
package main
import (
"fmt"
"io"
"log"
"net/http"
)
type HttpConnection struct {
View golang-create-read-write-delete-file.go
package main
import (
"fmt"
"io"
"os"
)
var path = "/Users/novalagung/Documents/temp/test.txt"
@stevenferrer
stevenferrer / go_decode.go
Created Aug 2, 2019 — forked from miguelmota/go_decode.go
Golang gob encoding and decoding example
View go_decode.go
package main
import (
"bytes"
"encoding/gob"
"fmt"
"log"
)
func main() {
@stevenferrer
stevenferrer / konsole_breeze_dark_tab.css
Last active Jul 10, 2019
Konsole breeze dark tab style
View konsole_breeze_dark_tab.css
QTabBar::tab {
color: #808080;
background-color: #444c53;
font-size: 12px;
font-family: "Roboto";
height: 25px;
padding: 0px;
border: 1px;
}
@stevenferrer
stevenferrer / 01_basic.go
Created Jan 23, 2019 — forked from reagent/01_basic.go
Custom HTTP Routing in Go
View 01_basic.go
package main
import (
"io"
"log"
"net/http"
)
func main() {
@stevenferrer
stevenferrer / sqrt_approx.go
Created Jan 21, 2019
square root value approximation using newton's method
View sqrt_approx.go
package main
import (
"fmt"
"math"
)
func Sqrt(x float64) float64 {
// starting value
var z float64 = x / 2
@stevenferrer
stevenferrer / keycloak.html
Created Jul 21, 2018 — forked from thomasdarimont/keycloak.html
Keycloak JS Only public client example
View keycloak.html
<html>
<head>
<script src="http://localhost:8081/auth/js/keycloak.js" type="text/javascript">
</script>
</head>
<body>
<h1>js-demo-app</h1>
@stevenferrer
stevenferrer / docker-compose.yaml
Created Jul 17, 2018 — forked from alpham/docker-compose.yaml
docker compose file to run odoo 11
View docker-compose.yaml
version: "3"
services:
db:
image: postgres:9.4
deploy:
replicas: 1
volumes:
- pgsql_data:/var/lib/postgresql/data:rw,Z
environment:
@stevenferrer
stevenferrer / kmeans.py
Created Feb 13, 2018 — forked from mblondel/kmeans.py
Fuzzy K-means and K-medians
View kmeans.py
# Copyright Mathieu Blondel December 2011
# License: BSD 3 clause
import numpy as np
import pylab as pl
from sklearn.base import BaseEstimator
from sklearn.utils import check_random_state
from sklearn.cluster import MiniBatchKMeans
from sklearn.cluster import KMeans as KMeansGood
You can’t perform that action at this time.