Skip to content

Instantly share code, notes, and snippets.

View ejemba's full-sized avatar

Epo Jemba ejemba

  • Kametic
  • France
View GitHub Profile
@smileart
smileart / README.md
Last active March 16, 2024 15:42 — forked from agnoster/README.md
My ZSH Theme — Agnoster Mod

My modified fork of agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

Compatibility

@drewolson
drewolson / reflection.go
Last active November 20, 2023 09:39
Golang Reflection Example
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`
@icholy
icholy / map_filter_reduce.go
Last active February 20, 2017 01:44
chaining channels in go
package main
import (
"unicode/utf8"
)
type Item string
type Stream chan Item
type Acc string
package main
import (
"fmt"
"reflect"
)
//function types
type mapf func(interface{}) interface{}
@temoto
temoto / meetup.go
Last active November 24, 2017 20:20
Meetup is a micro proxy program that enables to connect two endpoints via TCP sockets. https://github.com/temoto/meetup
// Moved to https://github.com/temoto/meetup
@oleics
oleics / jsonschema-angular.html
Last active March 21, 2017 17:25
jsonschema, metawidget & angular
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"></script>
<script src="http://metawidget.sourceforge.net/js/3.7/metawidget-core.min.js"></script>
<script src="http://metawidget.sourceforge.net/js/3.7/metawidget-angular.min.js"></script>
@ncw
ncw / README.txt
Last active February 20, 2024 19:30 — forked from spikebike/client output
Client side certificates with go
This demonstrates how to make client side certificates with go
First generate the certificates with
./makecert.sh test@test.com
Run the server in one terminal
go run server.go
@shinmuro
shinmuro / mutable-deftype.clj
Last active January 5, 2021 22:10
Clojure deftype that has mutable field and setter method sample.
(defprotocol IEditName
(get-name [this])
(set-name! [this val]))
(deftype PersonName [^:volatile-mutable lname]
IEditName
(get-name [this] (. this lname))
(set-name! [this val] (set! lname val)))
(def pname (PersonName. "hoge"))
@smandy
smandy / casper.el
Created March 8, 2014 22:46
how to list fonts in emacs
(mapcar (lambda (x) ( insert (format "\n(set-frame-font \"%s\")" x ) ) ) (x-list-fonts "*") )