This file contains 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 ( | |
"fmt" | |
"net/http" | |
) | |
var routes map[string]func(http.ResponseWriter, *http.Request) | |
func main() { |
This file contains 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 ( | |
"net/url" | |
"strings" | |
"net/http" | |
"os" | |
"io" | |
"fmt" | |
) |
This file contains 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 ( | |
"encoding/json" | |
"fmt" | |
"github.com/bitly/go-nsq" | |
"github.com/codegangsta/inject" | |
"github.com/go-martini/martini" | |
"log" | |
"net/http" |
This file contains 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 librarian | |
import ( | |
"time" | |
) | |
const ( | |
FINE_DAY = 15 | |
FINE_MONTH = 500 | |
FINE_YEAR = 10000 |
This file contains 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 "fmt" | |
const( | |
FINE_DAY = 15 | |
FINE_MONTH = 500 | |
FINE_YEAR_FIX = 10000 | |
NO_FINE = 0 | |
) |
This file contains 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 java.io.*; | |
public class Convert { | |
public static void main(String[] args) { | |
System.out.println("Initialize ..."); | |
Read read = new Read("soal01.txt"); | |
Print print = new Print(); | |
for (int i = 1; i <= 3; i++) { | |
try{ | |
print.setFileName("jawaban"+i+".csv"); |
This file contains 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
public class Company { | |
public static void main(String args[]) { | |
try{ | |
System.out.println(Company.sort(145263)); | |
} catch(NumberFormatException e) { | |
System.out.println("NumberFormatException : " + e.getMessage()); | |
} catch(AsPositiveException e) { | |
System.out.println("AsPositiveException : " + e.getMessage()); | |
} | |
} |
This file contains 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 namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Input\InputArgument; | |
use Illuminate\Container\Container; | |
class KpMigrationMake extends Command { | |
/** |
This file contains 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
var myApp = angular.module('myApp', []); | |
myApp.directive('googleplace', function() { | |
return { | |
require: 'ngModel', | |
link: function(scope, element, attrs, model) { | |
var options = { | |
types: [], | |
componentRestrictions: {} | |
}; |