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
Rural data | ||||
---|---|---|---|---|
Rural average temperature | 22.14314927 | |||
Latitude | Longitude | Temperature | Delta temperature (temperature minus rural average temperature) | |
50.689423 | -3.549081 | 20.83380248 | -1.309346787 | |
50.699427 | -3.580324 | 21.22029034 | -0.922858929 | |
50.743985 | -3.580324 | 24.68239512 | 2.539245853 | |
50.752891 | -3.515436 | 23.58182023 | 1.438670963 | |
50.762665 | -3.521272 | 21.01284363 | -1.130305634 | |
50.761796 | -3.60264 | 20.35362728 | -1.789521989 | |
50.715299 | -3.430635 | 21.96305372 | -0.180095545 |
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
//To read from blue sky sensor | |
int blueSensorPin = A2; | |
int UnfilteredSensorPin = A0; | |
float ratio; | |
int UnfilteredSensorValue = 0; | |
int blueSensorValue = 0; | |
//Setup runs once to initialise. |
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
" All system-wide defaults are set in $VIMRUNTIME/debian.vim (usually just | |
" /usr/share/vim/vimcurrent/debian.vim) and sourced by the call to :runtime | |
" you can find below. If you wish to change any of those settings, you should | |
" do it in this file (/etc/vim/vimrc), since debian.vim will be overwritten | |
" everytime an upgrade of the vim packages is performed. It is recommended to | |
" make changes after sourcing debian.vim since it alters the value of the | |
" 'compatible' option. | |
" This line should not be removed as it ensures that various options are | |
" properly set to work with the Vim-related packages available in Debian. |
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
#import <Foundation/Foundation.h> | |
int main(int argc, char *argv[]) { | |
@autoreleasepool { | |
static size_t const iterations = 10000; | |
uint64_t t_0 = dispatch_benchmark(iterations, ^{ | |
@autoreleasepool { | |
NSString *dateStr = @"Sat Sep 15 05:52:10 +0000 2012"; |
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
[1] pry(main)> require 'active_support/inflector' | |
=> true | |
[2] pry(main)> "cafe".pluralize | |
=> "caves" | |
[3] pry(main)> |
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/ext/readline/extconf.rb | |
+++ b/ext/readline/extconf.rb | |
@@ -19,6 +19,10 @@ def readline.have_func(func) | |
return super(func, headers) | |
end | |
+def readline.have_type(type) | |
+ return super(type, headers) | |
+end | |
+ |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
from datetime import datetime, timedelta | |
import requests | |
class ForecastException(Exception): |
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
#!/usr/bin/ruby | |
require 'date' | |
class Resource | |
def initialize(hash = {}) | |
hash.each { |k, v| send("#{k}=", v) if respond_to?("#{k}=") } | |
end | |
class << self |
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
$ bundle exec bin/run | |
dyld: lazy symbol binding failed: Symbol not found: _rb_str_new_static | |
Referenced from: /Users/nickcharlton/.gem/ruby/2.2.2/gems/json-1.8.3/lib/json/ext/parser.bundle | |
Expected in: flat namespace | |
dyld: Symbol not found: _rb_str_new_static | |
Referenced from: /Users/nickcharlton/.gem/ruby/2.2.2/gems/json-1.8.3/lib/json/ext/parser.bundle | |
Expected in: flat namespace | |
[1] 72256 trace trap bundle exec bin/run |
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
% vagrant provision | |
The following berks command failed to execute: | |
/Users/nickcharlton/.gem/ruby/2.2.2/bin/berks --version --format json | |
The stdout and stderr are shown below: | |
stdout: | |
stderr: /Users/nickcharlton/.rubies/ruby-2.2.2/lib/ruby/2.2.0/rubygems/dependency.rb:315:in `to_specs': Could not find 'berkshelf' (>= 0) among 84 total gem(s) (Gem::LoadError) | |
Checked in 'GEM_PATH=/Users/nickcharlton/.vagrant.d/gems:/opt/vagrant/bin/../embedded/gems', execute `gem env` for more information |
OlderNewer