Skip to content

Instantly share code, notes, and snippets.

🛠
Building neat products

Jeffrey Horn jrhorn424

🛠
Building neat products
Block or report user

Report or block jrhorn424

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 Updating a package when you’re using NPM Shrinkwrap.md

npm shrinkwrap is useful, but maddening (once it's in place and you want to update a package).

Say you've got a package.json with module ember-cli as a devDependency currently at version 1.13.1. And you have an npm-shrinkwrap.json file too, generated with the --dev flag.

If you change the version of ember-cli to, say, 1.13.8 in package.json and run npm install, nothing will happen.

If you do that and manually change references in the shrinkwrap file, you will still have trouble (as nested dependencies may now be incorrect).

So what do we actually do?

View counter.js
//Verison 0
'use strict';
var counterFactory = function counterFactory() {
return function() {};
};
var firstCounter = counterFactory();
// firstCounter contains a reference to
// a new instance of the minimal function
@larsenwork
larsenwork / MonoidAtom.scss
Last active Oct 22, 2017
The code below enables contextual alternates and ligatures but disables them on your `cursor-line` so you don't sacrifice "editability".
View MonoidAtom.scss
* {
-webkit-font-smoothing: antialiased;
-webkit-font-feature-settings: "liga" on, "calt" on;
}
atom-text-editor .cursor-line {
-webkit-font-feature-settings: "liga" off, "calt" off;
}
@GA-MEB
GA-MEB / project01.md
Last active Aug 29, 2015
Project 1
View project01.md

Project #1: The Game

Overview

In our first project, let's start out with something fun - a game! Specifically, We'll be making Tic Tac Toe, a game that takes seconds to learn but minutes to master!

By the time you submit this project, you will have covered new ground in many of the big themes of the course:

  • Command Line: Interacting with the computer and navigating the filesystem from the command line.
  • Source Control: Managing and interacting with a git repository to store changes to code.
  • Programming Fundamentals: Working with objects, constructors, and events, while learning how to strategically solve problems and resolve errors.
@ohanhi
ohanhi / frp.md
Last active Jul 27, 2019
Learning FP the hard way: Experiences on the Elm language
View frp.md

Learning FP the hard way: Experiences on the Elm language

by Ossi Hanhinen, @ohanhi

with the support of Futurice 💚.

Licensed under CC BY 4.0.

Editorial note

View silly_page.md

SETUP

Create a new organization with a group name (this is public, so don't make it anything terrible) Create a new Github repo and all all group members to it Everyone create a fork of it

Features

Now, create the appropriate feature branches and move through this program:

View git_circus.md

SETUP -

Create a new organization with a group name (this is public, so don't make it anything terrible) Create a new Github repo and all all group members to it Everyone create a fork of it

Now, create the appropriate branches and move through this story:

You're writing a story about a current event and using Github to help organize it. The story will be in a file that someone creates called storytime.md

View rails_apis_codeschool.rb
=begin
=======================================
SURVIVING APIS WITH RAILS
=======================================
View setup-modernie-vagrant-boxes.md

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites

@sebmarkbage
sebmarkbage / Enhance.js
Last active Aug 15, 2019
Higher-order Components
View Enhance.js
import { Component } from "React";
export var Enhance = ComposedComponent => class extends Component {
constructor() {
this.state = { data: null };
}
componentDidMount() {
this.setState({ data: 'Hello' });
}
render() {
You can’t perform that action at this time.