Skip to content

Instantly share code, notes, and snippets.

jsncbt

Block or report user

Report or block jsncbt

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
View vimrc
" Combination of these setting plus others
" http://amix.dk/vim/vimrc.html
" https://github.com/jaysw/dotfiles/blob/master/vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => https://github.com/junegunn/vim-plug
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
filetype off " required
call plug#begin('~/.vim/plugged')
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
View gist:bf36e443065859517f4e087303865f1d
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
"Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
View zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# ZSH_THEME="clean"
View vimrc.txt
" Combination of these setting plus others
" http://amix.dk/vim/vimrc.html
" https://github.com/jaysw/dotfiles/blob/master/vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => https://github.com/junegunn/vim-plug
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
filetype off " required
call plug#begin('~/.vim/plugged')
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
View gist:58ac6cc15142c708790ed5d3e5d37182
  • CSS is written mobile first
  • standardise modifier classes ie. --visible --show --hide
  • single depth selectors EXCEPT for when children elements will change through a parent modifier .ie .element:hover .element__child
  • comment strange code ie. padding-top: calc(100% - 2.45rem) // what is this
  • media queries should not be nested
  • media queries should use min-width to make changes as screen sizes increase
  • media queries should be in order of screen size
  • animations that are not shared should be declared immediately above the element using the animation
View .js
if (supportsTemplate()) {
forEach(Object.keys(data), function(i) {
var review = data[i];
var t = document.querySelector('#innova-review');
var date = new Date(review.created_at);
var styledDate = date.getDate() + ' ' + monthNames[date.getMonth()] + ' ' + date.getFullYear();
t.content.querySelector('.innova-review__date').textContent = styledDate;
t.content.querySelector('.innova-review__business').textContent = innovaBusiness;
t.content.querySelector('.innova-review__name').textContent = review.name;
t.content.querySelector('.innova-review__score').textContent = review.rating;
View .js
(function(){
var reviewsLoaded = false
var PLUGIN_HOST = 'https://s3.amazonaws.com/plugin-dev.innovareviews.com'
var DATA_HOST = 'http://localhost:8000'
function forEach(array, callback, scope) {
for (var i = 0; i < array.length; i++) {
callback.call(scope, i, array[i]);
View latestreleases.js
import React, { Component, PropTypes } from 'react';
import ReleaseItem from "../ReleaseItem/ReleaseItem";
class LatestReleases extends Component {
constructor(props){
super(props);
}
View latest
import React, { Component, PropTypes } from 'react';
import ReleaseItem from "../ReleaseItem/ReleaseItem";
class LatestReleases extends Component {
constructor(props){
super(props);
}
View webpack.config.js
var path = require("path"),
webpack = require("webpack"),
merge = require("merge"),
config = require("./config/config"),
ExtractTextPlugin = require("extract-text-webpack-plugin");
var webpackConfig = {
output: {
path: path.join(__dirname, "dist"),
filename: "bundle.js",
You can’t perform that action at this time.