Skip to content

Instantly share code, notes, and snippets.

View akramsaouri's full-sized avatar
🦄
Open for OSS contributions

Ak Ram akramsaouri

🦄
Open for OSS contributions
View GitHub Profile
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@akramsaouri
akramsaouri / file-server.go
Created January 13, 2018 13:15
Serve static files from your current directory.
package main
import (
"html/template"
"log"
"net/http"
"os"
"path/filepath"
)
@akramsaouri
akramsaouri / redis.go
Created November 6, 2017 23:03
Simplified redis clone.
package main
import (
"bufio"
"fmt"
"io"
"log"
"net"
"strings"
)
@akramsaouri
akramsaouri / gomodoro.go
Created September 18, 2017 21:18
Pomodoro implementation using go routines/channels.
package main
import (
"fmt"
"os"
"time"
)
type Pomodoro struct {
turnChan, shortBreakChan, longBreakChan, exit chan bool