$table->string('type');
$table->string('name');
$table->text('description');
$table->text('data_sources');
$table->integer('created_by');
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
const FtpDeploy = require('ftp-deploy'); | |
const chalk = require('chalk'); | |
const ora = require('ora'); | |
const logSymbols = require('log-symbols'); | |
const deployer = new FtpDeploy(); | |
const config = { | |
username: 'your-ftp-username', | |
password: 'your-ftp-password', | |
host: 'your-server.com', |
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 | |
$username = 'sadarkawasan'; | |
$cache_time = 60 * 60 * 2; // seconds | |
$media = ""; | |
if (file_exists('igfeed.json') && (filemtime('igfeed.json') > (time() - $cache_time ))) { | |
$media = file_get_contents('igfeed.json'); | |
} else { | |
$html = file_get_contents('https://www.instagram.com/'.$username); |
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 | |
/* | |
21 May 2017 | |
created by Arif Akbarul Huda. | |
PENGANTAR | |
Pak Amir adalah orang terpandang didesanya yang memiliki hobi membaca. | |
Dirumahnya tersimpan ratusan koleksi buku. | |
Supaya bermanfaat, Pak Amir membuat perpustakaan pribadi dan warga sekitar boleh meminjam. |
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
var functions = require('firebase-functions'); | |
var nodemailer = require('nodemailer'); | |
// Setting email dan password pengirim | |
const gmailEmail = 'email.kamu@gmail.com'; | |
const gmailPass = 'password.email.kamu'; | |
const mailer = nodemailer.createTransport({ | |
service: 'Gmail', | |
auth: {user: gmailEmail, pass: gmailPass} |
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
{ | |
"name": "contact-form-email", | |
"description": "Kirim email dari contact form dengan Firebase Functions", | |
"dependencies": { | |
"nodemailer": "^2.4.1", | |
"firebase-admin": "^4.1.1", | |
"firebase-functions": "^0.5.1" | |
} | |
} |
A small script to collect direct download link of Naruto. Its easier and more efficient rather than browse through the site episode by episode, then find a link to the download site, and messing with their super annoying auto-popup-ads. Thank you to the site's owner he made the permalink well organized so we don't need to search it first. Also rocks SF because they don't required us to enter captcha, click generate-link-button, etc. :)
First, we need a scrapper package, Goutte. Install it with composer:
composer require "fabpot/goutte:2.*"
Then simply put the scrapper.php
inside the directory where you run the composer command.