Skip to content

Instantly share code, notes, and snippets.

Rob stinoga

Block or report user

Report or block stinoga

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
stinoga /
Last active Mar 22, 2018
My ZSH Theme

Rob's ZSH Theme

A ZSH theme optimized for people who use:

  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Monaco)

For Mac users, I highly recommend iTerm 2. I used the default colors but this also works well with Solarized Dark. The dots by the purple branch name denote the current git status:

  • Green: added files.
stinoga / removeStyles.js
Created Mar 16, 2018
Remove all stylesheets for Accessibility checking without CSS
View removeStyles.js
(() => {
Array.from(document.querySelectorAll('link, style')).forEach(el => {
stinoga / component.js
Created Dec 6, 2016
React custom Proptype function to check if another prop is defined
View component.js
function requiredIfNotHidden(props, propName, componentName) {
if (!props['hiddenLabel']) {
let value = props[propName];
// If no hidden label is set, children are required for accessibility
if (typeof value === undefined) {
return new Error(`Required prop '${propName}' was not specified in '${componentName}'. It is required if the 'hiddenLabel' prop is not set for accessibility
stinoga / .eslintrc
Created Feb 8, 2016
Eslint configuration
View .eslintrc
"rules": {
"indent": [
"quotes": [
stinoga /
Created Oct 1, 2015
List Arguments in Python
import inspect
def func(a, b, c):
frame = inspect.currentframe()
args, _, _, values = inspect.getargvalues(frame)
print 'function name "%s"' % inspect.getframeinfo(frame)[2]
for i in args:
print " %s = %s" % (i, values[i])
return [(i, values[i]) for i in args]
stinoga / console.js
Created Dec 27, 2014
Save console output to a file
View console.js
(function(console){ = function(data, filename){
if(!data) {
console.error(' No data')
if(!filename) filename = 'console.json'
# generate ssh key
ssh-keygen -t rsa
# copy public key to clipboard
pbcopy < ~/.ssh/
stinoga / console.js
Last active Aug 29, 2015
Get Titles on the Page (jQuery)
View console.js
var jq = document.createElement('script');
jq.src = "";
var array = []
$(".title > a").each(function() {
stinoga /
Last active Aug 29, 2015
Sublime Command line
sudo ln -s "/Applications/Sublime" /usr/local/bin
stinoga / lazyDirective.js
Last active Jan 4, 2016
Angular Lazy Load
View lazyDirective.js
// Lazy load directive, taken from
directive('myLazyLoad', function() {
return {
transclude: 'element',
priority: 1200, // changed needed for 1.2
terminal: true,
restrict: 'A',
compile: function(element, attr, linker) {
return function (scope, iterStartElement, attr) {
You can’t perform that action at this time.