Skip to content

Instantly share code, notes, and snippets.

View BruhKofi's full-sized avatar
🐿️
eating nuts

Victor BruhKofi

🐿️
eating nuts
View GitHub Profile
@BruhKofi
BruhKofi / next.confi.js
Created July 27, 2017 00:50
webpack config
module.exports = {
webpack: (config, { dev }) => {
config.module.rules.push(
{
test: /\.(css|scss)/,
loader: 'emit-file-loader',
options: {
name: 'dist/[path][name].[ext]'
}
},
var getCurrentWeek = function(){
var d = new Date();
d.setHours(0,0,0,0);
d.setDate(d.getDate()+4-(d.getDay()||7));
return [d.getFullYear(), Math.ceil((((d-new Date(d.getFullYear(),0,1))/8.64e7)+1)/7)];
};
var skipButton = document.querySelectorAll('[data-translation-id="account-area.my-deliveries.skip-week"]')[0];
var isActive = skipButton.innerHTML
@BruhKofi
BruhKofi / .bash_profile
Created May 13, 2017 20:54 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@BruhKofi
BruhKofi / 0_reuse_code.js
Created May 10, 2017 22:42
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@BruhKofi
BruhKofi / android44fix.css
Created March 18, 2017 01:56
android 4.4 not centering css
body{margin:0 !important; padding:0 !important;}
img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;}
table{border-collapse:collapse !important;}
body, #bodyTable, #bodyCell{height:100% !important; margin:0 !important; padding:0 !important; width:100% !important;}
@BruhKofi
BruhKofi / sampleandroid.haml
Created March 18, 2017 01:53
Table sample code
%table.blockContainer{ border: '0', cellpadding: '0', cellspacing: '0', bgcolor: '#FFFFFF', style: 'border-top: none; width: auto !important;' }
/ MAIN BANNER
%tr
%td{ valign: 'top', style: 'padding-bottom:0; width:100%; text-align:center;' }
%a{ href: t(:url) + track+ '&utm_content=banner', style: 'line-height: 0; text-decoration: none;' }
%img.img-responsive{ src: t("#{page}.banner_image"), width: 600, style: 'width: 100% !important; font-size: 76px;display: block; background: #848484;color: #fff', alt: t("#{page}.banner_alt") }