Skip to content

Instantly share code, notes, and snippets.

View h4ckm03d's full-sized avatar
🚴

Moch Lutfi h4ckm03d

🚴
View GitHub Profile
@h4ckm03d
h4ckm03d / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
package main
import "fmt"
type Pipe interface {
Process(in chan int) chan int
}
type Sq struct{}
@h4ckm03d
h4ckm03d / fuzzy c-means.cs
Created September 15, 2014 09:49
Simple implementation fuzzy c-means
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestFuzzy
{
class Program
@h4ckm03d
h4ckm03d / fuzzy c-means.cs
Last active August 7, 2018 07:21
Simple implementation fuzzy c-means #fuzzy
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestFuzzy
{
class Program
var array1 = [{ k: 'v1', v: 2 }, { k: 'v2', v: 2 }, { k: 'v3', v: 2 }]
var array2 = {}
array1.every(function (elem, idx, array) {
array2[elem.k] = elem.v
return true
})
console.log(array1)
console.log(array2)
@h4ckm03d
h4ckm03d / board2d.py
Created October 4, 2017 06:42
Board 2D search
board = [
['a', 'a', 'u', 'r'],
['l', 'l', 'g', 'n'],
['y', 'q', 'h', 'y'],
['p', 'r', 'a', 'l'],
]
def find_word(board, word):
for y,row in enumerate(board):
for x, col in enumerate(row):
@h4ckm03d
h4ckm03d / cloudSettings
Created November 16, 2017 06:21
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-11-16T06:20:36.296Z","extensionVersion":"v2.8.5"}
@h4ckm03d
h4ckm03d / keybase.md
Created September 13, 2019 06:12
Keybase.md

Keybase proof

I hereby claim:

  • I am h4ckm03d on github.
  • I am lumochift (https://keybase.io/lumochift) on keybase.
  • I have a public key ASACsvdrv1vRW_T4Llk7BFE0IOL3cLj2cNNzVnYGSEFGZAo

To claim this, I am signing this object:

Table "bills" {
"id" bigint [not null]
"amount" double [not null]
"discount" double [not null]
"void" boolean [not null, default: false]
"created_at" timestamp [not null]
"updated_at" timestamp [not null]
"payments_id" bigint
}