Skip to content

Instantly share code, notes, and snippets.

View getsetbro's full-sized avatar
💭
[ bro-lite ]

Seth Broweleit getsetbro

💭
[ bro-lite ]
View GitHub Profile
@getsetbro
getsetbro / spcontext.js
Last active October 16, 2017 15:42 — forked from phillipharding/aspnetmvc-spcontext.js
spcontext.js without jquery
/*!spcontext*/
(function (window, undefined) {
"use strict";
//var $ = window.jQuery;
var document = window.document;
// SPHostUrl parameter name
var SPHostUrlKey = "SPHostUrl";
@getsetbro
getsetbro / .block
Created October 5, 2017 14:27
fresh block
license: mit
@getsetbro
getsetbro / vscode_emmet_settings_sept.2017.txt
Created September 23, 2017 14:27
vscode emmet settings - Sept 2017
"editor.snippetSuggestions": "top",
"emmet.showSuggestionsAsSnippets": true,
"emmet.showAbbreviationSuggestions": true,
"emmet.showExpandedAbbreviation": "always",
"emmet.triggerExpansionOnTab": true,
@getsetbro
getsetbro / committed.node_modules.txt
Created March 27, 2017 17:09
oops committed node_modules folder
#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@getsetbro
getsetbro / tsconfig.json
Created July 4, 2016 03:43
tsconfig.json to add es6 shims and intellisense to typescript
{
"compileOnSave": true,
"compilerOptions": {
"target": "es5",
"noLib": true
},
"files": [
"app/*.ts",
"scripts/lib.es6.d.ts"
]
@getsetbro
getsetbro / powerbi-playground-app.js
Created March 24, 2016 17:32
powerbi playground app
/*
* Power BI Visualizations
*
* Copyright (c) Microsoft Corporation
* All rights reserved.
* MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the ""Software""), to deal
* in the Software without restriction, including without limitation the rights
@getsetbro
getsetbro / css_units.txt
Created February 15, 2016 15:45
CSS units
CSS units
ch, em, ex, rem, #Font-relative_lengths
cm, in, mm, pc, pt, px, q, #Absolute_lengths
vh, vw, vmin, vmax, #Viewport-percentage_lengths
deg, grad, rad, turn, #Angle
ms, s, #Duration
Hz, kHz, #Frequency
dpi, dpcm, dppx, #Resolution
%, #Other
@getsetbro
getsetbro / d3donutdial.html
Created December 3, 2015 16:53
d3 donut dial
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>d3 donut dial</title>
<style media="screen">
body{
margin: 0;
font: 15px/1 sans-serif;
}
@getsetbro
getsetbro / api_results.js
Created September 14, 2015 00:22
results from the cdnjs api
{
"results": [{
"name": "twitter-bootstrap",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/js/bootstrap.min.js",
"assets": null
}, {
"name": "twitter-bootstrap-wizard",
"latest": "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap-wizard/1.2/jquery.bootstrap.wizard.min.js",
"assets": null
}, {
WARNING: Manifest validation (Android) - Launcher icons of the following sizes are required: 48x48, 72x72, 96x96, 144x144, 192x192, 512x512[icons]
WARNING: Manifest validation (iOS) - An app icon of the following sizes is required: 76x76, 120x120, 152x152 and 180x180[icons]
WARNING: Manifest validation (iOS) - An 1024x1024 app icon for the App Store is required[icons]
WARNING: Manifest validation (iOS) - A launch image of the following sizes is required: 750x1334, 1334x750, 1242x2208, 2208x1242, 640x1136, 640x960, 1536x2048, 2048x1536, 768x1024 and 1024x768[icons]
SUGGESTION: Manifest validation (Chrome) - A 48x48 icon should be provided for the extensions management page (chrome://extensions)[icons]
SUGGESTION: Manifest validation (Chrome) - It is recommended to have a 16x16 favicon[icons]
SUGGESTION: Manifest validation (All Platforms) - It is recommended to specify a set of access rules that represent the navigation scope of the application[mjs_access_whitelist]
WARNING: Manifest validation (All Pl