Skip to content

Instantly share code, notes, and snippets.

View RStrydom's full-sized avatar
😁

Renier Strydom RStrydom

😁
View GitHub Profile
// ==UserScript==
// @name Resource Guru Task Complete
// @namespace resource_guru_task_complete
// @description Provides the ability to check off completed tasks
// @include https://firstview1.resourceguruapp.com/*
// @version 1
// @grant none
// ==/UserScript==
function addCss(cssString) {
@RStrydom
RStrydom / ClassPrefix.css
Created August 4, 2014 12:32
Bootstrap Media Queries starter
/**
* Bootstrap Media Queries starter
*
* Move into each respective file
* lg.css, md.css, sm.css, xs.css
*
*/
/* Large devices */
@media (min-width: 1200px) {
@RStrydom
RStrydom / panel_aware.js
Last active August 29, 2015 14:05
jQuery patch to add active state for Bootstrap 3 collaps/Accordian
$('.panel-heading a').on('click', function() {
$(this).closest('.panel-group').find('.panel').removeClass('active');
if ($(this).closest('.panel').find('.panel-collapse').hasClass('in')) {
$(this).closest('.panel').removeClass('active');
}else{
$(this).closest('.panel').addClass('active');
}
});
@RStrydom
RStrydom / b3_5columns.css
Last active August 29, 2015 14:08
Bootstrap 3 - 5 columns
/*Bootstrap 3: 5 columns*/
.col-lg-five,
.col-md-five,
.col-sm-five,
.col-xs-five {
position: relative;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
@RStrydom
RStrydom / intoFolder
Created November 24, 2014 09:44
File stuffing
#!/bin/bash
for FILE in `ls`
do
# remove the last dot and subsequent chars, then add new ext
DIR="${FILE%%.*}"
DIR=${DIR,,}
mkdir -p "$DIR"
mv "$FILE" "$DIR"
done
@RStrydom
RStrydom / fatguy.js
Created April 8, 2015 12:00
Script for finding elements that are causing overflow scrolling
var docWidth = document.documentElement.offsetWidth;
[].forEach.call(
document.querySelectorAll('*'),
function(el) {
if (el.offsetWidth > docWidth) {
console.log(el);
}
}
);
@RStrydom
RStrydom / config.json
Last active August 29, 2015 14:24 — forked from anonymous/config.json
Bootstrap Config for Trellidor
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
### Keybase proof
I hereby claim:
* I am rstrydom on github.
* I am renitent (https://keybase.io/renitent) on keybase.
* I have a public key ASAUdunvm5daW6pK1WBSw7v1nBhYm64be1oC-8JbhqOW6Qo
To claim this, I am signing this object:
{
"swagger":"2.0",
"info":{
"title":"Swagger Sample App built using pedestal-api",
"version":"2.0",
"description":"Find out more at https://github.com/oliyh/pedestal-api"
},
"produces":[
"application/json"
],
{
"info": {
"_postman_id": "d990f9b7-98d3-47d3-9131-4866ab9c6df2",
"name": "Notion API",
"description": "Hello and welcome!\n\nTo make use of this API collection collection as it's written, please duplicate [this database template](https://www.notion.so/8e2c2b769e1d47d287b9ed3035d607ae?v=dc1b92875fb94f10834ba8d36549bd2a).\n\n[Create an integration](https://www.notion.so/my-integrations) to retrieve an API token, add your database and page ID's as variables in the collection, and start making your requests!\n\nFor our full documentation, including sample integrations and guides, visit [developers.notion.com](developers.notion.com)\n\nNeed more help? Join our [developer community on Slack](https://join.slack.com/t/notiondevs/shared_invite/zt-lkrnk74h-YmPRroySRFGiqgjI193AqA/)",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "3648057"
},
"item": [
{