This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV["RAILS_ENV"] ||= "test" | |
require_relative "../config/environment" | |
require "rails/test_help" | |
#Use Spec DSL | |
require 'minitest/spec' | |
#Helpers | |
require 'capybara/rails' | |
require 'mocha/minitest' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A sample Guardfile | |
# More info at https://github.com/guard/guard#readme | |
## Uncomment and set this to only include directories you want to watch | |
# directories %w(app lib config test spec features) \ | |
# .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")} | |
## Note: if you are using the `directories` clause above and you are not | |
## watching the project directory ('.'), then you will want to move | |
## the Guardfile to a watched dir and symlink it back, e.g. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file is automatically compiled by Webpack, along with any other files | |
// present in this directory. You're encouraged to place your actual application logic in | |
// a relevant structure within app/javascript and only use these pack files to reference | |
// that code so it'll be compiled. | |
require("@rails/ujs").start() | |
require("turbolinks").start() | |
require("@rails/activestorage").start() | |
require("channels") | |
require("bootstrap/dist/js/bootstrap") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devices": [ | |
{ | |
"deviceName": "HVAC Controller", | |
"deviceType": "HVAC Controller", | |
"devicePath": "", | |
"parameters": [ | |
{ "paramName": "heat", "paramType": "bool", "paramActions": "both"}, | |
{ "paramName": "ac", "paramType": "bool","paramActions": "both"}, | |
{ "paramName": "fan", "paramType": "bool", "paramActions": "both"}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"deviceName": "HVAC", | |
"deviceType": "HVAC", | |
"parameters": [ | |
{"paramName": "Current Temperature", "paramType": "number", "paramActions": "read"}, | |
{"paramName": "Set Temperature", "paramType": "number", "paramActions": "both"} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that "crslade.id" is my Blockstack ID. https://onename.com/crslade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// AxesDrawer.swift | |
// Calculator | |
// | |
// Created by CS193p Instructor. | |
// Copyright (c) 2015-16 Stanford University. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rack/rewrite' | |
use Rack::Static, :urls => ['/index.html', '/favicon.ico'], :root => 'public' | |
if ENV['RACK_ENV'] == 'development' | |
use Rack::ShowExceptions | |
end | |
#change to your domain | |
root = 'http://www.christopherslade.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options +FollowSymLinks | |
RewriteEngine On | |
#index page | |
RewriteRule ^index.php http://www.christopherslade.com [R=301,L] | |
#About | |
RewriteRule ^author/crslade http://www.christopherslade.com/p/about_21.html [R=301,L] | |
RewriteRule ^about http://www.christopherslade.com/p/about_21.html [R=301,L] | |
# Feed | |
RewriteRule ^feed http://www.christopherslade.com/feeds/posts/default [R=301,L] | |
# Post URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= drop_receiving_element :droppable, :accept => "draggable", :hoverclass => "hover", :url => draggable_elements_path, :method => :post, :with => "'element_id='+encodeURIComponent(element.id.split('_').last()) + | |
'&x='+ encodeURIComponent(Element.getStyle(element,'left')) + '&y='+ encodeURIComponent(Element.getStyle(element,'top')) "> |
NewerOlder