Skip to content

Instantly share code, notes, and snippets.

View chentsulin's full-sized avatar
🕶️
Keep learning

C. T. Lin chentsulin

🕶️
Keep learning
View GitHub Profile
@chentsulin
chentsulin / NoHasher.php
Created January 31, 2015 16:28
NoHasher for particular case (Don't use in production)
<?php
use Illuminate\Hashing\HasherInterface;
class NoHasher implements HasherInterface {
public function make($value, array $options = array())
{
return $value;
}
@chentsulin
chentsulin / server.go
Created December 22, 2014 08:33
Simple Http Server in multi programming languages
package server
import(
"net/http"
)
func main() {
http.HandleFunc("/", SayHelloWorld)
http.ListenAndServe(":8080", nil)
}
@chentsulin
chentsulin / app.php
Last active August 29, 2015 14:11
Specify Laravel Config
// app/config/myenv/app.php
return array(
'debug' => true,
);
@chentsulin
chentsulin / Dir.java
Last active August 29, 2015 14:10
Java get file directory
class Dir {
public static void main(String[] args) {
System.out.println("Directory: " + System.getProperty("user.dir"));
}
}
@chentsulin
chentsulin / SassMeister-input.sass
Created October 30, 2013 08:24
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
$users: amy annie eric
@each $u in $users
.user-#{$u}
background: url(#{$u}.jpg)