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 / hyper.js
Created April 23, 2019 14:05 — forked from coco-napky/hyper.js
Hyper config for git bash in Windows
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
/* http://meyerweb.com/eric/tools/css/reset/
v2.0-modified | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
@Frankie-B
Frankie-B / ultimate-ut-cheat-sheet.md
Created May 11, 2020 09:01 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@Frankie-B
Frankie-B / webdev_online_resources.md
Created June 24, 2020 05:53 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@Frankie-B
Frankie-B / The ultimate gitignore!
Created March 11, 2021 14:10 — forked from KSkodje/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
@Frankie-B
Frankie-B / React .gitignore
Created March 11, 2021 14:16 — forked from vidaaudrey/React .gitignore
React Gitignore
node_modules
ncp-debug.log
npm-debug.log
bower_component
src/config/configSec.js
.DS_STORE
node_modules
*~
*.pyc
@Frankie-B
Frankie-B / A.markdown
Created February 18, 2022 17:15 — forked from larrybotha/A.markdown
Fix SVGs not scaling in IE9, IE10, and IE11

Fix SVG in <img> tags not scaling in IE9, IE10, IE11

IE9, IE10, and IE11 don't properly scale SVG files added with img tags when viewBox, width and height attributes are specified. View this codepen on the different browsers.

Image heights will not scale when the images are inside containers narrower than image widths. This can be resolved in 2 ways.

Use sed in bash to remove width and height attributes in SVG files

As per this answer on Stackoverflow, the issue can be resolved by removing just the width and height attributes.

@Frankie-B
Frankie-B / webstorm-cheat-sheet.md
Created February 21, 2022 12:59 — forked from kwmiebach/webstorm-cheat-sheet.md
Webstorm cheat sheet
@Frankie-B
Frankie-B / array-methods.js
Created March 1, 2022 16:00 — forked from rohailtaha/data.js
Reusable javascript code snippets
// Sort Records(objects) In Arrays By Some Key.
// @PARAMS:
// data => array of objects to sort
// key => object key on which sort is based.
// order => DESC | ASC
// limit => number of objects to return in resulting array.
// @RETURN:
// The sorted array.
export const sort = (data, key, order, limit = null) => {
limit = limit ? limit : data.length;
@Frankie-B
Frankie-B / CodeSnippets
Created March 1, 2022 16:02 — forked from magicpotion/CodeSnippets
Code Snippets
Code Snippets