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 / 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") }
@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 / 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 / .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
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 / 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]'
}
},
@BruhKofi
BruhKofi / .eslintrc
Created October 16, 2017 19:38 — forked from cletusw/.eslintrc
ESLint Reset - A starter .eslintrc file that resets all rules to off and includes a description of what each rule does. From here, enable the rules that you care about by changing the 0 to a 1 or 2. 1 means warning (will not affect exit code) and 2 means error (will affect exit code).
{
// http://eslint.org/docs/rules/
"ecmaFeatures": {
"binaryLiterals": false, // enable binary literals
"blockBindings": false, // enable let and const (aka block bindings)
"defaultParams": false, // enable default function parameters
"forOf": false, // enable for-of loops
"generators": false, // enable generators
"objectLiteralComputedProperties": false, // enable computed object literal property names
@BruhKofi
BruhKofi / Dockerfile
Created January 17, 2018 19:51 — forked from DakotaLMartinez/Dockerfile
Sharetribe Dockerfile
FROM ruby:2.3.4
MAINTAINER Sharetribe Team <team@sharetribe.com>
ENV REFRESHED_AT 2016-11-08
RUN apt-get update \
&& apt-get dist-upgrade -y
#
@BruhKofi
BruhKofi / epyk-custom-head.html
Created January 18, 2018 01:16 — forked from billhance/epyk-custom-head.html
Epyk Custom Header Scripts for sharetribe
<script type="text/javascript">
(function(document){
function syncDatePickers(startDateNode, endDateNode) {
startDateNode.datepicker().on("changeDate", function(e) {
endDateNode.datepicker('setDate', new Date(e.target.value));
});
}
function changeLabelText(datePickerNode, text) {
datePickerNode.closest('div').css('width', '100%').find('label').text(text);
var directionsDisplay;
var directionsService;
var marker;
var geocoder;
var map;
var defaultCenter;
var infowindow;
var center;
var prefix;
var textfield;