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
| # FFMPEG Cmds | |
| # https://ffmpeg.org/ffmpeg-all.html#Video-Options | |
| # -i input file | |
| # Basic convert mov to mp4 | |
| ffmpeg -i input.mov output.mp4 | |
| # Simple Compress ( amount by -b 2500k) | |
| # -b: bitrate |
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
| <!DOCTYPE html> | |
| <head> | |
| <!--Little CSS fade in --> | |
| <style> | |
| .fade-in{ | |
| -webkit-animation: fade-in 2s ease; | |
| -moz-animation: fade-in ease-in-out 2s both; | |
| -ms-animation: fade-in ease-in-out 2s both; | |
| -o-animation: fade-in ease-in-out 2s both; |
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
| export default function findInArray<T>( | |
| arr: T[], | |
| callback: (element: T, index: number, array: T[]) => boolean | |
| ): T | undefined { | |
| if (typeof callback !== 'function') { | |
| throw new TypeError('callback must be a function') | |
| } | |
| const list = Object(arr) | |
| // Makes sure it always has a positive integer as length. |
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
| /** | |
| * No Current Sessions | |
| * Simple class to prevent concurrent user sessions. | |
| */ | |
| class NoConcurrentSessions { | |
| function __construct() { | |
| add_action( 'init', array( $this, 'only_one' ) ); | |
| } |
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
| /** | |
| * isEven | |
| * @param {number} | |
| */ | |
| export function isEven(num) { | |
| return num % 2 === 0; | |
| } | |
| /** | |
| * Count Items |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| import React, { useEffect } from 'react' | |
| import Router, { useRouter } from 'next/router' | |
| function PageTrans(props) { | |
| const router = useRouter() | |
| let transTime = 100 | |
| useEffect(() => { | |
| const handleRouteExit = () => { | |
| document.documentElement.classList.remove('page-trans-entered') |
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
| #!/bin/bash | |
| # First, run a fetch to update all origin/<branch> refs to latest: | |
| git fetch --all | |
| # Backup your current branch: | |
| git checkout -b backup-master |
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
| /** | |
| * DopeModule | |
| */ | |
| const DopeModule = (function() { | |
| // Module Constants | |
| const ACTIVE_CLASS_NAME = 'is-active'; | |
| // Module Vars |
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
| mkdir component-name && cd component-name | |
| npm init -y && git init | |
| npm install --save react react-dom | |
| npm install --save-dev @babel/core @babel/plugin-proposal-class-properties @babel/preset-env @babel/preset-react parcel-bundler | |
| touch .gitignore | |
| mkdir src | |
| touch src/index.html | |
| atom . |
NewerOlder