Skip to content

Instantly share code, notes, and snippets.

View cmrichards's full-sized avatar

Chris Richards cmrichards

  • christopher-richards.net
  • Manchester, England
View GitHub Profile
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<polymer-element name="my-element">
<template>
<style>
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../speech-mic/speech-mic.html">
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../google-map/google-map-search.html">
<polymer-element name="my-element">
<template>
Gives this error "Error: [$injector:unpr] http://errors.angularjs.org/1.2.2/$injector/unpr?p0=userServiceProvider%20%3C-%20userService"
var UserSearchController = function(userService, $scope, $http) {
...
}
var userService = function($http) {
..
}
// Just for a laugh I have built 2 more possible versions of the code.
// There is so little code that either way is probably as good as the other,
// but if there were more code then the changes would mean more.
int analogueIn = A0; //input pin for pressure pad
int digitalOut1 = 8; //output pin for motor control
int sensorIn; //variable for triggering the statement in while loop
int primer; //variable for triggering the primer switch
int primerS = A2; //input for primer switch
int digitalOut2 = 4; //output pin for trigger ready LED
/home/chrisr/Downloads/nginx/nginx-upload-module/ngx_http_upload_module.c: In function ‘ngx_http_upload_merge_loc_conf’:
/home/chrisr/Downloads/nginx/nginx-upload-module/ngx_http_upload_module.c:1104:31: error: ‘ngx_garbage_collector_temp_handler’ undeclared (first use in this function)
/home/chrisr/Downloads/nginx/nginx-upload-module/ngx_http_upload_module.c:1104:31: note: each undeclared identifier is reported only once for each function it appears in
/home/chrisr/Downloads/nginx/nginx-upload-module/ngx_http_upload_module.c:1104:31: warning: passing argument 1 of ‘ngx_conf_merge_path_value’ from incompatible pointer type [enabled by default]
src/core/ngx_file.h:142:7: note: expected ‘struct ngx_conf_t *’ but argument is of type ‘struct ngx_path_t *’
/home/chrisr/Downloads/nginx/nginx-upload-module/ngx_http_upload_module.c:1104:31: warning: passing argument 2 of ‘ngx_conf_merge_path_value’ from incompatible pointer type [enabled by default]
src/core/ngx_file.h:142:7: note: expected ‘struct ngx_path_t **’ but
Uninstalling modules from DKMS
removing old DKMS module vboxhost version 4.1.4
------------------------------
Deleting module version: 4.1.4
completely from the DKMS tree.
------------------------------
Done.
Attempting to install using DKMS
@cmrichards
cmrichards / gist:2407071
Created April 17, 2012 15:54
Data Model + Context + Role
The Context + Roles :
module Contexts
# Move an area to different points on the tree.
#
# This context has multiple entry points for each deviation of moving an area around the tree.
#
# The source area can be moved in any of these 3 ways :
#
require "minitest_helper"
require "mocha"
describe Contexts::MoveAreaBeforeArea do
it "should add area before area" do
Area.expects(:find).with(100).returns(Area.new)
context = Contexts::MoveAreaBeforeArea.new 100, 100
app/
exhibits/
job/
job_poles_exhibit.rb
property/
line_poles_exhibit.rb
room/
pole_report_exhibit.rb
exhibit.rb
commit 8fd77c2d6c6793780701ee6cbd0c9bdff00efd8e
Author: Chris <>
Date: Sat Feb 18 12:32:27 2012 +0000
ok
diff --git a/public/system b/public/system
deleted file mode 120000
index bd6984c..0000000
--- a/public/system