Skip to content

Instantly share code, notes, and snippets.

View roblevintennis's full-sized avatar

Rob Levin roblevintennis

View GitHub Profile

Libraries and Tools for React

Components and Component Libraries

If you're developing an application based on React it can be helpful if you don't need to develop all the basic UI components yourself. Here you can find a list with various components, component libraries and complete design systems developed with and for React.

Component libraries and Design Systems

Brands (official design systems by various companies and products)

@roblevintennis
roblevintennis / Snippet: Github PR Files List
Created June 14, 2019 21:01
chrome snippet to get a list of Github PR files. Useful for then listing the acceptance criteria for a PR.
var log = []
document.querySelectorAll('.file-info > a').forEach(node => log.push(node.text))
console.log(log.join('\n'));
// How will we move forward given ES6 module imports cannot be spied on e.g. you'll get error:
// Cannot set property of #<Object> which has only a getter
// Unless you transpile down to CommonJS (which works for now but probably not forever)
// Below are some ideas…
// ---- Dependency Injection ---- //
// Implementation
diff --git a/app/assets/stylesheets/basic.scss b/app/assets/stylesheets/basic.scss
index 153ae768ab4..9009d6d2d21 100644
--- a/app/assets/stylesheets/basic.scss
+++ b/app/assets/stylesheets/basic.scss
@@ -1,6 +1,5 @@
@import "app/assets/stylesheets/common/css_reset";
@import "app/assets/stylesheets/common/utilities";
@import "app/assets/stylesheets/basic/common";
-@import "mavenlink-js/src/stylesheets/styleguide/components/icons/icons-new";
@import "app/assets/stylesheets/basic/landing";
@roblevintennis
roblevintennis / example.erb
Last active July 17, 2018 00:31
String Interpolation Refactoring Examples
<% svgIconName = ''
case story.story_type
when 'deliverable'
svgIconName = 'icon-deliverable'
when 'milestone'
svgIconName = 'icon-milestone'
when 'task'
svgIconName = 'icon-task'
when 'issue'
svgIconName = 'icon-issue'
@roblevintennis
roblevintennis / stack_trace.coffee
Last active May 12, 2017 17:54
coffeescript stack trace
getStackTrace = ->
stack = (new Error).stack or ''
stack = stack.split('\n').map((line) ->
line.trim()
)
stack.splice if stack[0] == 'Error' then 2 else 1
onRender: ->
console.log("Custom stack trace:")
console.log(getStackTrace().join('\n'))

Gannon Cannons - SVG Splatter Blocks

Chris Gannon rocks at SVG animation. This is just me studying his stuff and a total buffoonery not to be taken seriously! Go look at Chris's original here: http://codepen.io/chrisgannon/pen/wKReBX as this is just a decomposition for me to figure out what the dude's doing cuz "imitation is the sincerest form of flattery" and all dat jazz :-)

A Pen by Rob Levin on CodePen.

License.

user = User.find(ID_FOUND_IN_USERS_TABLE)
200.times { |n|
w = Workspace.new(:title => 'Workspace-' + n.to_s, :creator_team => 'buyer')
w.creator = user
w.save!
}
require 'fixjour'
require File.expand_path("./spec/spec_helpers/builders.rb")
include Fixjour
w = Workspace.find( YOUR_WORKSPACE_ID_HERE )
60.times { |n| create_story(workspace: w, title: n) }
@roblevintennis
roblevintennis / gist:865de775fb988bfad9a1
Last active May 7, 2017 20:20
Responsive Inline SVGs Sass Mixin
$svg-container-namespace: '.svg-container';
//Give 'em' 1:1 responsive container by default
#{$svg-container-namespace} {
display: inline-block;
position: relative;
height: 0;
width: 100%;
padding: 0;
//Default for 1:1 aspect ratio