Skip to content

Instantly share code, notes, and snippets.

View vikramrojo's full-sized avatar

Vikram Rojo vikramrojo

View GitHub Profile
@vikramrojo
vikramrojo / Interview Questions.md
Last active June 16, 2019 18:54
Product Designer Onsite Questions

Product Designer Onsite Questions

Customer Success

  • What is the biggest challenge users face with the product?
  • Are there any significant drop off points in the experience?
  • What are some features users are expecting or inquire about?

Engineering

  • How much of things built come from designs?
  • What areas of the product do you feel need design support?
  • How much of the product does design typically touch?

FORTUNE (intro)

Fortune is a modern and modular CSS Framework that emphasizes (extensive) use of CSS variables. With the introduction and the , CSS variables (combined with CSS Grid and Flexbox) make building and shipping beautiful web-based UIs possible with just few configurations.

VALUE PROPOSITION I

Fortune specializes in helping developers write beautiful UIs for their websites and web apps fast using util CSS classes. And there are several kinds of classes––abstract classes that influence the margin and padding, component classes which construct a common CSS component e.g. a button, modifiers which update aspects of a CSS component, and state modifiers which induce a state (like psuedo-selectors)

VALUE PROPOSITION II

Rather than attempt to do too much trail-blazing, Fortune apprecaites previous and existing CSS frameworks such as ... and ... and aims to build on their successes and fill in where possible. No CSS framework will work for 100% of all deve

@tkh44
tkh44 / reset-styles.js
Created September 27, 2017 05:50
glamor reset for emotion
import { injectGlobal } from 'react-emotion';
/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
/**
* 1. Change the default font family in all browsers (opinionated).
* 2. Correct the line height in all browsers.
* 3. Prevent adjustments of font size after orientation changes in
* IE on Windows Phone and in iOS.
*/
@tkh44
tkh44 / base.js
Last active August 16, 2022 16:28
emotion with styled-system.
import React from 'react'
import styled from 'emotion/react'
import { omit } from 'emotion/lib/utils'
import { space, width, fontSize, color, responsiveStyle } from 'styled-system'
import { baseCss } from './ui'
const defaultExcludedProps = [
'm',
'mt',
@threepointone
threepointone / glam-for-css-folks.md
Last active September 4, 2022 07:43
why css purists will love glam

I made a little styling lib called glam

(some features are in development)

one

let's start off with the simplest use case. we'll make an 'index.html' page, and assume we've setup our js bundler to output bundle.js

@levibostian
levibostian / post.md
Last active April 15, 2020 20:31
webpack, Tachyons, pug, Vue.js web app.

Today, single page web apps are driving many websites that we use each and every day. Instead of having your browser request a new web page for each and every action you perform on a web page, single page web apps may load all in one request to smoothly and quickly transition with every action you perform.

When building single page web apps, you may decide to retrieve all of the HTML, CSS and Javascript with one single page load or dynamically load these resources as the user moves about your site. Either way, it can be a pain to bundle all of these assets together for the end user to download from your web server. This is where webpack comes into play.

webpack does all of the heavy lifting bundling all of your HTML, CSS and Javascript together. If you write your site all from scratch or depend on dependencies from npm, webpack takes care of packaging it all together for you. It has the ability to take your single page web app, cut out all of the code you don't need, then packa

@robinsloan
robinsloan / unfave.rb
Last active June 5, 2022 21:32
Unfave script, because why not??
#!/usr/bin/env ruby
require "rubygems"
require "twitter"
require "json"
require "faraday"
# things you must configure
TWITTER_USER = "your_username"
# get these from dev.twitter.com
@kaishin
kaishin / NSColor+isLight.h
Last active October 14, 2022 01:09
Programmatically determine the perceived lightness of a color. More details on: http://robots.thoughtbot.com/closer-look-color-lightness + Online tool: http://thoughtbot.github.io/color-lightness-test/
#import <Cocoa/Cocoa.h>
@interface NSColor (isLight)
- (BOOL)isLight;
@end
@chrisjacob
chrisjacob / README.md
Created February 14, 2011 14:31
Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout - a step-by-step guide.

Intro

Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout.

IMPORTANT

If you plan on switching between different branches (e.g. git checkout master-experiment then revert back with git checkout master) you will loose your child folder from this tutorial (because it's in your .gitignore and is not part of your master branch).