Skip to content

Instantly share code, notes, and snippets.

View cevherkarakoc's full-sized avatar
😁

Cevher Karakoç cevherkarakoc

😁
View GitHub Profile
@saltun
saltun / gist:b4c117641461177523ef
Created July 5, 2014 12:39
Laravel validation.php Türkçe [ TR]
<?php
return array(
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
@hyamamoto
hyamamoto / string.hashcode.js
Created September 30, 2016 07:19
JavaScript Implementation of String.hashCode() .
/**
* Returns a hash code for a string.
* (Compatible to Java's String.hashCode())
*
* The hash code for a string object is computed as
* s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1]
* using number arithmetic, where s[i] is the i th character
* of the given string, n is the length of the string,
* and ^ indicates exponentiation.
* (The hash value of the empty string is zero.)