Skip to content

Instantly share code, notes, and snippets.

View younisshah's full-sized avatar
💤
I am very very slow to respond.

Younis Shah younisshah

💤
I am very very slow to respond.
  • Temasek
  • Singapore
View GitHub Profile
@davidvthecoder
davidvthecoder / round.go
Created April 9, 2014 19:58
Arggh Golang does not include a round function in the standard math package. So I wrote a quick one.
package main
import (
"log"
"math"
)
func Round(val float64, roundOn float64, places int ) (newVal float64) {
var round float64
pow := math.Pow(10, float64(places))
@rob-murray
rob-murray / add_intellij_launcer
Last active March 18, 2025 17:36
Add Intellij launcher shortcut and icon for ubuntu
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ