Skip to content

Instantly share code, notes, and snippets.

@jcloutz
jcloutz / .golang-example-gitlab-ci.yml
Last active December 6, 2022 11:20
Example Gitlab CI setup for Go using the official golang docker image
image: golang:1.7
stages:
- build
- test
before_script:
- go get github.com/tools/godep
- cp -r /builds/user /go/src/github.com/user/
- cd /go/src/github.com/user/repo
@jcloutz
jcloutz / item.js
Created December 3, 2015 14:27
Ember JS Relationships Not updating
import DS from 'ember-data';
export default DS.Model.extend({
item_no: DS.attr('string'),
name: DS.attr('string'),
notes: DS.attr('string'),
barcode: DS.attr('string'),
vendor_item_no: DS.attr('string'),
vendor_dept: DS.attr('string'),
orders: DS.hasMany('order', {async: true}),
@jcloutz
jcloutz / README.md
Created January 26, 2013 20:18 — forked from oodavid/README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/