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
# Credit Card Type | |
## American Express | |
378282246310005 | |
371449635398431 | |
## American Express Corporate | |
378734493671000 | |
## Diners Club | |
30569309025904 |
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 | |
/** | |
* This function recursively gets the Google Drive files. | |
* | |
* @param $id | |
* @return array | |
*/ | |
function getGoogleDriveFiles($id) | |
{ | |
$files = openGoogleDriveFolder($id); |
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
5.1 | 3.5 | 1.4 | 0.2 | Iris-setosa | |
---|---|---|---|---|---|
4.9 | 3.0 | 1.4 | 0.2 | Iris-setosa | |
4.7 | 3.2 | 1.3 | 0.2 | Iris-setosa | |
4.6 | 3.1 | 1.5 | 0.2 | Iris-setosa | |
5.0 | 3.6 | 1.4 | 0.2 | Iris-setosa | |
5.4 | 3.9 | 1.7 | 0.4 | Iris-setosa | |
4.6 | 3.4 | 1.4 | 0.3 | Iris-setosa | |
5.0 | 3.4 | 1.5 | 0.2 | Iris-setosa | |
4.4 | 2.9 | 1.4 | 0.2 | Iris-setosa | |
4.9 | 3.1 | 1.5 | 0.1 | Iris-setosa |
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
(defun power (B E) | |
"Compute for the Eth Power of B." | |
(if (= E 1) | |
B | |
(* B (power B (- E 1))))) | |
; or (* B (power B (1- E))))) |
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
(defun f-to-c () | |
(format t "~%Please enter Fahrenheit temperature: ") | |
(let* | |
( | |
(ftemp (read)) | |
(ctemp (* (- ftemp 32) 5/9)) | |
) | |
(format t | |
"~%~s degrees Fahrenheit is ~s degrees Celsius~%" | |
ftemp |
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
### Keybase proof | |
I hereby claim: | |
* I am ridvanbaluyos on github. | |
* I am ridvanbaluyos (https://keybase.io/ridvanbaluyos) on keybase. | |
* I have a public key ASAiZcFJ4XCAGc2wFlrSka26MlbdA1rezNyXUfbS3lr8hAo | |
To claim this, I am signing this object: |
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
// Route | |
Route::get('/monitoring/{username}', 'MainCtr@monitoringView')->middleware('admin'); | |
// Controller | |
public function monitoringView($username = null) | |
{ | |
if (!is_null($username) || isset($username)) { | |
$data = Users::whereUsername($username)->first(); | |
} elseif (request()->has('monitoring')) { | |
$data = ServiceRequest::where('status', request('monitoring')) |
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
# See https://getkong.org | |
# Actual API Endpoint: http://rx-78-2.gundamserver.com/mmda-api/v1/traffic | |
# All Traffic Data | |
curl "http://ec2-52-77-210-176.ap-southeast-1.compute.amazonaws.com:8000/ | |
-H "Host: rx-78-2.gundamserver.com" \ | |
-H "apikey: ec5429707a7ac51cf0e66bbbd45ea88f" | |
# Traffic with Highway (eg. Ortigas Avenue) |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 | |
$datetime = '2015-12-07 00:58:18'; | |
$now = new DateTime; | |
$ago = new DateTime($datetime); | |
$diff = $now->diff($ago); | |
$diff->w = floor($diff->d / 7); | |
$diff->d -= $diff->w * 7; | |
$string = [ |
NewerOlder