node crawl keywordnya
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 | |
require('vendor/autoload.php'); | |
if ($_SERVER['REQUEST_METHOD'] == 'POST') { | |
$validator = new Rakit\Validation\Validator; | |
$validation_1 = $validator->validate($_FILES, [ | |
'file' => 'required|uploaded_file' |
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 Commando | |
{ | |
protected $filename; | |
protected $command; | |
protected $arguments = []; | |
protected $options = []; | |
protected $optionsAlias = []; |
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 | |
namespace App\Libraries\FormModel; | |
use Closure; | |
use DB; | |
use Exception; | |
use Storage; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Database\Eloquent\Relations\HasMany; |
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 | |
namespace Emsifa\Stuble; | |
class Gitignore | |
{ | |
protected $gitignoreFile; | |
protected $patterns = []; |
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
function numberFormat(number) { | |
return (number || '').toString().replace(/^0|\./g,'').replace(/(\d)(?=(\d{3})+(?!\d))/g,'$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
// Import dependencies yang dibutuhkan | |
const express = require('express'); | |
const { ApolloServer, gql } = require('apollo-server-express'); | |
// Jabarkan skema graphql | |
const typeDefs = gql` | |
type Query { | |
hello: String | |
users: [User]! | |
user(id: ID!): User |
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 CosineSimilarity | |
{ | |
protected $data_a; | |
protected $data_b; | |
public function __construct(array $data_a, array $data_b) | |
{ |
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 KMeans | |
{ | |
protected $k; | |
protected $data; | |
public function __construct(array $data, int $k) | |
{ |
This is PEG grammar to parse time syntax in crontab.
You can try it by copy-paste parser.js
to PEGjs online editor.
Then put test input value to any valid crontab time. For example:
* 1 1-9 1,2 SAT,SUN