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
:root { | |
--ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 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
let pos = 0 | |
let colour = 0 | |
let len = 0 | |
let stretch = 0 | |
let item: neopixel.Strip = null | |
let LED_Count = 0 | |
LED_Count = 90 | |
item = neopixel.create(DigitalPin.P0, LED_Count, NeoPixelMode.RGB) | |
item.clear() | |
item.easeBrightness() |
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
// TODO: 'use strict' | |
function loadPage(newUrl) { | |
var httpRequest = new XMLHttpRequest(); | |
httpRequest.onreadystatechange = function() { | |
if (httpRequest.readyState !== XMLHttpRequest.DONE) | |
return; | |
// TODO: UI for this error | |
var newDocument = httpRequest.responseXML; | |
if (newDocument === null) | |
return; |
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 | |
/** | |
* Minify HTML | |
*/ | |
class drivkraft_compression { | |
/* Run compression */ | |
static function run() { |
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
let colour = 0 | |
let stretch = 0 | |
let X = 0 | |
let item: neopixel.Strip = null | |
let LED_Count = 0 | |
function RED() { | |
for (let index2 = 0; index2 <= LED_Count; index2++) { | |
for (let list2 = 0; list2 <= stretch; list2++) { | |
colour = neopixel.rgb(Math.abs(255 / index2), Math.abs(30 / index2), 0) | |
item.setPixelColor(index2 + list2, colour) |
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
<html> | |
<div style="position: absolute; left: 50%; top: 50%; transform: translate( -50%, -50% ); text-align: center; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif; font-weight: 600; border-bottom: 2.5vw solid red; font-size: 13vw;"> | |
BRAND NAME | |
</div> | |
</html> |
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
composer require \ | |
composer/installers \ | |
example/package \ | |
example/package \ | |
... | |
example/package \ | |
example/package --sort-packages --update-with-dependencies |
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
DELETE a.* | |
FROM wp_posts AS a | |
INNER JOIN ( | |
SELECT post_title, MIN( id ) AS min_id | |
FROM wp_posts | |
WHERE post_type = 'product' | |
AND post_status = 'publish' | |
GROUP BY post_title | |
HAVING COUNT( * ) > 1 | |
) AS b ON b.post_title = a.post_title |
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
chown -R `whoami` * # Let Apache be owner | |
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x | |
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r-- | |
# For servers | |
chown -R www-data:www-data . | |
find . -type d -exec chmod 570 {} \; # Change directory permissions rwxr-xr-x | |
find . -type f -exec chmod 460 {} \; # Change file permissions rw-r--r-- |
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
# Find all files changed since yesterday | |
find ./wp-content/ -mtime -14 -not -path "*/.git/*" \ | |
-not -path "*.scssc" \ | |
-not -path "*/uploads/*" \ | |
-not -path "*/.sass-cache/*" \ | |
-not -path "*/vendor/*" -ls; | |
# Check if .css files have changed recently. | |
find ./wp-content/themes/ -name "*.css" -mtime -14 \ | |
-not -path "*/node_modules/*" -ls; |