Skip to content

Instantly share code, notes, and snippets.

View Frankie-B's full-sized avatar
💭
New Day New Code

Frankie Bukenya Frankie-B

💭
New Day New Code
  • The Netherlands
View GitHub Profile
@Frankie-B
Frankie-B / eslintrc.js
Created May 24, 2022 18:12 — forked from adrianhajdin/eslintrc.js
ESLint Configuration
// eslintrc.js
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'plugin:react/recommended',
'airbnb',
],
@Frankie-B
Frankie-B / gist:81234ca6c7664f360e3b27032b8fc884
Created March 30, 2022 18:23 — forked from stilyng94/gist:0625bcd5b0a19ce862deb1debf449384
Install Shopify cli on Windows Sub-system For Linux (WSL)
sudo apt update
sudo apt-get update
sudo apt install nodejs
sudo apt-get install ruby-full
sudo apt-get install build-essential
sudo apt-get install bison openssl curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libxml2-dev autoconf libc6-dev ncurses-dev automake libtool
sudo gem install shopify-cli
Liquid for Mephisto Cheatsheet
Compiled by Lee Leonard
Version 0.2 - 31 Jan 2007 (liquid 1.5.0; Mephisto 0.7.3)
This is a second draft -- corrections and suggestions are even more
encouraged. Send them to <l...@tempestprod.com>.
Basic Syntax
{{ (variable | string) ['|' filter1 ['|' filter2...]] }}
{% controltag %} [..] {% endcontroltag %}
@Frankie-B
Frankie-B / .jshintrc.js
Created March 18, 2022 21:47 — forked from connor/.jshintrc.js
jshintrc example
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 100, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
@Frankie-B
Frankie-B / ffmpeg.md
Created March 18, 2022 20:33 — forked from Orangestar12/ffmpeg.md
quick ffmpeg cheat sheet

These are a few quick easy ffmpeg command lines that can be used to make oft-used video formats. I use them a lot so I wrote them down in a txt file but I converted it to markdown to upload here and access on all my pcs.

Feel free to use 'em. I've gathered them through superuser posts, wiki trawls, and personal experience.

General notes

  • Add -movflags faststart to make mp4 files have their headers at the beginning of the file, allowing them to be streamed (i.e. played even if only part of the file is downloaded).
  • The MP4 container supports MP3 files, so if libfdk_aac isnt available (it's the only good AAC enc) use libmp3lame.
    • Update: unless you're uploading them to Twitter. Twitter doesn't like MP4 files with MP3 audio. Fall back to AAC and provide a higher quality alternative somewhere else.
  • For MP4 files, use -preset X to use MP4 enc presets, like slow or superfast. (veryfast or fast is ok)
@Frankie-B
Frankie-B / ffmpeg.md
Created March 18, 2022 20:32 — forked from steven2358/ffmpeg.md
FFmpeg cheat sheet
@Frankie-B
Frankie-B / youtube-dl-cheat.txt
Created March 18, 2022 20:31 — forked from philosopherdog/youtube-dl-cheat.txt
youtube-dl cheat sheet
# Basic Download:
youtube-dl URL
# Download Playlist, put in folder, and index with order:
youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' URL
# Download to /$uploader/$date/$title.$ext:
youtube-dl -o '%(uploader)s/%(date)s/%(title)s.%(ext)s' URL
# Download playlist starting from certain video:
@Frankie-B
Frankie-B / vanilla-js-cheatsheet.md
Created March 13, 2022 16:54 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@Frankie-B
Frankie-B / javascript-classes.md
Created March 7, 2022 10:22 — forked from zoxon/javascript-classes.md
Adding and Removing Classes, with simple cross-browser JavaScript

Adding and Removing Classes, with simple cross-browser JavaScript

The standard JavaScript way to select an element is using document.getElementById("Id"), which is what the following examples use - you can of course obtain elements in other ways, and in the right situation may simply use this instead - however, going into detail on this is beyond the scope of the answer.

To change all classes for an element:

To replace all existing classes with one or more new classes, set the className attribute:

document.getElementById("MyElement").className = "MyClass";
@Frankie-B
Frankie-B / The ultimate gitignore!
Created March 4, 2022 21:18 — forked from onero/The ultimate gitignore!
The ultimate gitignore!
# Created by Adamino @ https://www.gitignore.io/api/java,android,netbeans,intellij,windows,csharp,wordpress,drupal,sass,linux,bluej,unity,unrealengine,grunt,yeoman,adobe,c++,bower,coffeescript,composer,eclipse,jetbrains,magento,joomla,laravel,lua,meteorjs,node,kobalt,python,objective-c,rails,swift,visualstudio,umbraco,visualstudiocode,webstorm,xamarinstudio,xcode,sublimetext
### Eclipse ###
.metadata
bin/
tmp/
*.tmp
*.bak