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
echo "# laravel-tes" >> README.md | |
git init | |
git add README.md | |
git commit -m "first commit" | |
git remote add origin https://github.com/fatkulnurk/laravel-tes.git | |
git push -u origin master |
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
@if (isset($paginator) && $paginator->lastPage() > 1) | |
<ul class="pagination"> | |
<?php | |
$interval = isset($interval) ? abs(intval($interval)) : 3 ; | |
$from = $paginator->currentPage() - $interval; | |
if($from < 1){ | |
$from = 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
var kata = "malam o"; | |
let hasil = ''; | |
for(let i=0;i<kata.length;i++){ | |
if(kata[i] == kata[kata.length - i - 1]){ | |
hasil = hasil.concat(kata[kata.length - i - 1]); | |
} | |
} | |
if(kata === hasil){ | |
console.log("palindrom"); |
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 | |
//error_reporting(E_ERROR | E_PARSE); | |
include "dataset.php"; | |
$k = 10; | |
$data = $data; | |
// print_r($data); |
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
public function store(Request $request){ | |
//die('aaaaaaa'); | |
$result = $this->validate($request,[ | |
'full_name' => 'required', | |
'email' => 'required|unique:users', | |
'phone_number' => 'required', | |
'password' => 'required', | |
'role' => 'required', | |
]); |
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
/* | |
* GLUT Shapes Demo | |
* | |
* Written by Nigel Stewart November 2003 | |
* | |
* This program is test harness for the sphere, cone | |
* and torus shapes in GLUT. | |
* | |
* Spinning wireframe and smooth shaded shapes are | |
* displayed until the ESC or q key is pressed. The |
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
/* | |
* GLUT Shapes Demo | |
* | |
* Written by Nigel Stewart November 2003 | |
* | |
* This program is test harness for the sphere, cone | |
* and torus shapes in GLUT. | |
* | |
* Spinning wireframe and smooth shaded shapes are | |
* displayed until the ESC or q key is pressed. The |
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 ( | |
"bufio" | |
"fmt" | |
"os" | |
"strings" | |
) | |
func ScanLn(rslt *[]interface{}) { |
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 | |
//API URL | |
$url = 'http://www.contohweb.com/api'; | |
//create a new cURL resource | |
$ch = curl_init($url); | |
//setup request to send json via POST | |
$data = array( |
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 FuzzyTsukamoto | |
{ | |
/* | |
* Object User | |
*/ | |
var $user; | |
// besar pinjaman | |
var $nominalPinjaman; |