Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ngurajeka's full-sized avatar

Ady Rahmat MA ngurajeka

View GitHub Profile
package main
import (
"log"
"net/http"
"sync"
)
func main() {
urls := []string{
@ngurajeka
ngurajeka / student.py
Created May 18, 2020 06:46
Student Grading
import matplotlib.pyplot as plt
import numpy as np
import seaborn
from tabulate import tabulate
seaborn.set() # set plot style
# Student untuk placeholder satu data
class Student(object):
def __init__(self, nama, nim, nilai_tugas, nilai_uts, nilai_uas):
#!/bin/sh
gofiles=$(git diff --cached --name-only --diff-filter=ACM | grep '\.go$')
[ -z "$gofiles" ] && exit 0
unformatted=$(gofmt -l $gofiles)
[ -z "$unformatted" ] || echo "needs formatting: $unformatted"
# tests
go test -v -race $(go list ./... | grep -v /vendor/)
RESULT=$?
[ $RESULT -ne 0 ] && exit 1
" Automatic reloading of .vimrc
autocmd! bufwritepost ~/.vimrc source %
" Show whitespace
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
au InsertLeave * match ExtraWhitespace /\s\+$/
filetype off
filetype plugin indent on
syntax on
[{
label: "Email",
key: "evpaEmail",
type: "email",
},{
label: "Name",
key: "evpaName",
type: "text",
}]
{
"auto_complete": true,
"color_inactive_tabs": true,
"color_scheme": "Packages/Zeus/Sublime Text/Zeus-Sublime-Text.tmTheme",
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
<?php
function setupValidation()
{
$fields = array();
$fields[] = array(
"type" => "presenceOf",
"field" => "username"
);
$fields[] = array(
"type" => "presenceOf",
@ngurajeka
ngurajeka / Preferences.sublime-settings
Created August 2, 2016 04:07
Current Sublime Settings
{
"auto_complete": false,
"color_inactive_tabs": true,
"color_scheme": "Packages/Theme - Afterglow/Afterglow-monokai.tmTheme",
"draw_white_space": "all",
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
{
"color_inactive_tabs": true,
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme",
"draw_white_space": "all",
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
<?php
class CrudController extends ControllerBase {
public function indexAction() {
}
public function createAction() {
// we assume every post are there