Skip to content

Instantly share code, notes, and snippets.

View SteveALee's full-sized avatar

Steve Lee SteveALee

View GitHub Profile
@gcmcom
gcmcom / git-wars.md
Created July 14, 2016 05:33 — forked from juderosen/git-wars.md
Git Wars: GitHub vs Bitbucket

Git Wars: GitHub vs Bitbucket

Introduction

Now, you might think the answer I'm going to give you is already obvious because I'm using GiHub right now, but it's not. Both GitHub and Bitbucket offer great Git services, but each has its own features and pricing plans. In the following... thing, I'm going to compare the two and then offer a final solution that should work for most people.

TL;DR: Both. Use GitHub for open source and public repos (you'll spend most of your time here) and Bitbucket for private repos. But, sign up for GitHub first, then import account into Bitbucket. Also, check comments for updates. P.S. I personally prefer GitHub.

Interface and Functionality

// install @types/react-redux and other nonsense
import * as React from 'react'
import { connect } from 'react-redux'
import { YourActualAppState } from './wherever-it-is.ts'
export function mapStateToProps({
whatever
}: YourActualAppState) {
return {
@Cmdv
Cmdv / reactive-programming-cycle-js.md
Last active October 6, 2019 07:28
Reactive Programming & Cycle.js list of learning material
@SteveALee
SteveALee / gist:4bd828882f2027f8878eb9ef856f7f60
Last active October 31, 2019 17:06
Responsive SVG in Flexbox
<!DOCTYPE html>
<html lang="en">
<style>
body {
margin: 1px;
}
#main {
display: flex;
flex-direction: column;
@nickytonline
nickytonline / cobalt2_agnoster_theme.jpg
Last active November 7, 2020 09:29
My VS Code Setup
cobalt2_agnoster_theme.jpg
@swyxio
swyxio / readme.md
Last active January 16, 2022 10:36
svelte society day talks and resources -
@kitze
kitze / store.js
Created January 24, 2018 13:14
simplified redux
import produce from 'immer';
import {createStore} from 'redux';
const handleActions = (actionsMap, defaultState) => (
state = defaultState,
{type, payload}
) =>
produce(state, draft => {
const action = actionsMap[type];
action && action(draft, payload);
@getify
getify / 1.js
Last active March 19, 2023 08:32
tag function for formatting console.log(..) statements
function logger(strings,...values) {
var str = "";
for (let i = 0; i < strings.length; i++) {
if (i > 0) {
if (values[i-1] && typeof values[i-1] == "object") {
if (values[i-1] instanceof Error) {
if (values[i-1].stack) {
str += values[i-1].stack;
continue;
}
@yuval-a
yuval-a / js-micro.js
Last active January 7, 2024 18:38
Javascript micro-optimizations
NOTE: This document is OLD - and most of the tips here are probably outdated, since newer versions of Javascript have been
released over the years - with newer optimizations and more emphasis on optimizing newly supported syntax.
// Array literal (= []) is faster than Array constructor (new Array())
// http://jsperf.com/new-array-vs-literal/15
var array = [];
// Object literal (={}) is faster than Object constructor (new Object())
// http://jsperf.com/new-array-vs-literal/26
@svpernova09
svpernova09 / README.md
Created October 24, 2017 18:01
How to test Homestead & Hyper-V

Prerequisities:

  • Ensure you have Windows 10 & The Fall Creators Update installed.
  • Uninstall Virtualbox
  • Enable Hyper-V
  • Create a new Virtual Switch in Hyper-V that is type "External" (You'll use this whenever asked)

Edit Homestead

Add / edit these 2 lines in your Homestead.yaml