This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"net/http" | |
"sync" | |
) | |
func main() { | |
urls := []string{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
label: "Email", | |
key: "evpaEmail", | |
type: "email", | |
},{ | |
label: "Name", | |
key: "evpaName", | |
type: "text", | |
}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auto_complete": true, | |
"color_inactive_tabs": true, | |
"color_scheme": "Packages/Zeus/Sublime Text/Zeus-Sublime-Text.tmTheme", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function setupValidation() | |
{ | |
$fields = array(); | |
$fields[] = array( | |
"type" => "presenceOf", | |
"field" => "username" | |
); | |
$fields[] = array( | |
"type" => "presenceOf", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_inactive_tabs": true, | |
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme", | |
"draw_white_space": "all", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CrudController extends ControllerBase { | |
public function indexAction() { | |
} | |
public function createAction() { | |
// we assume every post are there |
NewerOlder