Skip to content

Instantly share code, notes, and snippets.

View Hendrixer's full-sized avatar

Scott Moss Hendrixer

View GitHub Profile
@Hendrixer
Hendrixer / newpost.md
Last active June 18, 2016 06:30
its a post

fist things first

  • this is dope
  • this is dope too
const damn: string = 'daaaaamn';
{
"name": "fem-ng2-simple-app",
"version": "0.0.1",
"license": "SEE LICENSE IN LICENSE",
"repository": {
"type": "git",
"url": "https://github.com/onehungrymind/fem-ng2-simple-app/"
},
"scripts": {
"start": "webpack-dev-server --inline --watch",
@Hendrixer
Hendrixer / p.bash
Created March 22, 2016 22:26
bash
# Set architecture flags
export ARCHFLAGS="-arch x86_64"
# Ensure user-installed binaries take precedence
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
# Setting PATH for Python 2.7
PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}"
export PATH
# Changing the colors so the terminal isn't so bland
* {
box-sizing: border-box;
font-family: 'Raleway', sans-serif;
}
form {
background-color: white;
padding: 20px;
border-radius: 3px;
margin-bottom: 20px;
}
import * as _ from 'lodash';
import {Config} from '../interfaces';
const ENV: string = process.env.NODE_ENV = process.env.NODE_ENV || 'dev';
let mainConfig: Config = {
};
export const config: Config = _.merge(mainConfig, require(`./${ENV}`).default); // what ever file is required here does not get bundled
@Hendrixer
Hendrixer / angular-2.sublime-syntax
Last active July 30, 2016 12:25
angular 2 syntax for sublime
%YAML 1.2
---
# http://www.sublimetext.com/docs/3/syntax.html
name: Angular 2
file_extensions:
- ts
scope: source.ts
contexts:
main:
- include: expression
@Hendrixer
Hendrixer / Simple Reactive Store with Angular 2
Last active November 29, 2016 07:37
Simple reactive store
Angular 2 uses observables for many features and has a peer dependency on [RxJs](http://reactivex.io/rxjs/) for its robust API around observables. The community has adopted a single store approach for dealing with state in modern applications. Let's build a store for our Angular applications that is both reactive and easy to use with RxJs.
## Single store is awesome
We'll create this store with intentions on it being the only store in our app. By doing this, we can provide a better experience and lower the difficulty of reasoning about state in our app, because all the state is in one place! First we'll create the [provider](https://angular.io/docs/ts/latest/guide/dependency-injection.html#!#injector-providers) for the store itself.
```typescript
export class AppStore {}
```
@Hendrixer
Hendrixer / InstallMissingModules.js
Created August 28, 2016 19:17
list and install npm packages before webpack build
const thenify = require('thenify')
const webpack = require('webpack')
const MemoryFS = require('memory-fs')
const validateNpmPackageName = require('validate-npm-package-name')
class InstallMissingModules {
constructor(options) {
this.options = options
}
@Hendrixer
Hendrixer / editor.css
Last active September 27, 2025 02:47
VS code custom CSS for theme
.composite-title, .composite-title, .vs-dark .monaco-workbench>.activitybar>.content {
background-color: rgba(40, 44, 52, 1) !important;
}
.tabs-container, .tab, .tab.active, .title-actions, .tablist, .tabs-container, .tabs, .composite.title {
background-color: rgba(40, 44, 52, 1) !important;
}
.tab.active, .tab {
border-right: 0px !important;
@Hendrixer
Hendrixer / .bash_profile
Created June 11, 2017 16:39
bash colors
green=$'\e[1;32m'
teal=$'\e[1;36m'
magenta=$'\e[1;35m'
normal_colors=$'\e[m'
export GITAWAREPROMPT=~/.bash_theme
source $GITAWAREPROMPT/main.sh
export PS1="\[$txtpur\]\u:\[$teal\][\w]:\[$green\]\$git_branch\[$txtred\]\$git_dirty\[$txtred\] <%>\[$normal_colors\] "
export SUDO_PS1="\[$bakred\]\u@\h\[$txtrst\] \w\$ "