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 myScript = document.createElement('script'); | |
myScript.src = 'http://www.madeupurl.com/script.js'; | |
myScript.onload = function() { | |
console.log('Script loaded.'); | |
}; | |
myScript.onerror = function() { | |
console.log('script failed.'); | |
}; | |
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
//styling | |
$borderWidth: 7px; | |
$animationTime: 1.5s; | |
$border-color-default: #eee; | |
$border-color-fill: #ffb43e; | |
$size: 150px; | |
//Create how many steps | |
$howManySteps: 10; //this needs to be even. |
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
//es5 for max browser compatible, works with mutliple videos on a page. No resize event. | |
//get all vids | |
var video = document.querySelectorAll('video') | |
//add source to video tag | |
function addSourceToVideo(element, src) { | |
var source = document.createElement('source'); | |
source.src = src; | |
source.type = 'video/mp4'; |
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
# simple image conversion script design create from a double density asset both @2x and @1x versions of said image in JPEG, JPEG2000, WebP for HTML5 picture elements. | |
# Requires Zenity, ImageMagick with JPEG2000, MozJPEG, and Webp | |
# brew install imagemagick --with-openjpeg | |
# brew install webp | |
# brew install mozjpeg | |
# brew install zenity | |
file=$(zenity --file-selection --title="Select a File") | |
datafill=`zenity --forms \ |
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
// Load plugins | |
const gulp = require("gulp"); | |
const sass = require('gulp-sass'); | |
const cleanCSS = require('gulp-clean-css'); | |
const gulpif = require('gulp-if'); | |
const rename = require('gulp-rename'); | |
const kit = require('gulp-kit-2'); | |
const { series, watch } = require("gulp"); | |
const browsersync = require('browser-sync').create(); |
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
#!/bin/bash | |
echo "+--------------------------------+" | |
echo "| Big Sur Icon Changer by HueZuX |" | |
echo "+--------------------------------+" | |
echo "" | |
echo "Root password will be required. To enable root user, see:" | |
echo "https://support.apple.com/en-us/HT204012" | |
echo "" |