Skip to content

Instantly share code, notes, and snippets.

View techhjork's full-sized avatar
🃏
Javascript

Techh Jork techhjork

🃏
Javascript
View GitHub Profile
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@techhjork
techhjork / anonupload.js
Last active June 27, 2022 07:27
Anonfiles Upload Nodejs | downloading from URL
const axios = require("axios");
const fs = require("fs");
const fetch = require("node-fetch");
const FormData = require("form-data");
const request = require("request");
const Path = require("path");
// const upload = (api, event) => {
const upload = (event) => {
const { type, threadID, messageID, senderID, attachments, messageReply } =
@techhjork
techhjork / imageswitch.php
Created May 20, 2022 15:52
Product Image change on mouse over and enter with foreign key
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>product</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<style type="text/css">
.imgs{
@techhjork
techhjork / transition.html
Created May 20, 2022 15:45
Transition issue
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>product</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<style type="text/css">
.imgs{
@techhjork
techhjork / scraper.js
Last active August 16, 2022 20:41
webscraping Nodejs structure
const puppeteer = require("puppeteer");
const express = require("express");
const app = express();
async function initPuppeteer() {
const browser = await puppeteer.launch({
args: ["--no-sandbox", "--disable-setuid-sandbox"],
});
@techhjork
techhjork / products-scrap.js
Last active April 26, 2022 14:12
Puppeteer Ecommerce Products
const puppeteer = require('puppeteer')
const paginationInfo = [];
const url = "https://www.eichholtz.com/en/collection/new/new-arrivals.html?"
async function scrape() {
const browser = await puppeteer.launch({})
const page = await browser.newPage()
const page2 = await browser.newPage()
await page.goto(`${url}p=1`)