Skip to content

Instantly share code, notes, and snippets.

View PeterMitrano's full-sized avatar
🔬

Peter Mitrano PeterMitrano

🔬
View GitHub Profile
Crashlog created at 2015-07-07 00:54:39 -0700
===== MESSAGE:
TypeError: no implicit conversion of String into Hash
===== COMPILATION STACK:
(empty)
@PeterMitrano
PeterMitrano / gist:7dc3949baabd4c9a5181
Last active August 29, 2015 14:24
gradle components output
Native library 'gz_msgs'
------------------------
Source sets
C++ source 'gz_msgs:cpp'
srcDir: build/generated/cpp
includes: build/generated/cpp
Binaries
Shared library 'gz_msgs:sharedLibrary'
:simulation:gz_msgs:linkGz_msgsSharedLibrary UP-TO-DATE
:simulation:gz_msgs:gz_msgsSharedLibrary UP-TO-DATE
:simulation:gz_msgs:createGz_msgsStaticLibrary UP-TO-DATE
:simulation:gz_msgs:gz_msgsStaticLibrary UP-TO-DATE
:simulation:gz_msgs:compileProto UP-TO-DATE
:simulation:gz_msgs:compileJava UP-TO-DATE
:simulation:gz_msgs:processResources UP-TO-DATE
:simulation:gz_msgs:classes UP-TO-DATE
:simulation:gz_msgs:jar UP-TO-DATE
:simulation:gz_msgs:sourcesJar UP-TO-DATE
@PeterMitrano
PeterMitrano / gist:3bfde6ef7e2154e7d306
Created July 14, 2015 20:17
Build list of C++ Libraries
apply plugin: 'cpp'
def plugins = ['clock', 'dc_motor', 'encoder', 'gyro', 'limit_switch', 'plugins', 'pneumatic_piston', 'potentiometer', 'rangefinder', 'servo']
//iterate over each plugin
model {
components {
plugins.each{
it(NativeLibrarySpec){
sources {
@PeterMitrano
PeterMitrano / gist:d666b9d855689e14ecf6
Created July 15, 2015 18:46
build.gradle with gazebo libraries
def plugins = ['clock', 'dc_motor', 'encoder', 'gyro', 'limit_switch', 'pneumatic_piston', 'potentiometer', 'rangefinder', 'servo']
//iterate over each plugin
model {
components {
plugins.each {
"gz_$it"(NativeLibrarySpec){
sources {
cpp {
source {
@PeterMitrano
PeterMitrano / build.log
Last active August 29, 2015 14:25
initial output of nmake
[ 21%] Built target gmock
[ 23%] Building CXX object CMakeFiles/ntcore.dir/src/Dispatcher.cpp.obj
Dispatcher.cpp
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\xstring(684) : warning C4350: behavior change: 'std::_Wrap_alloc<std::allocator<char>>::_Wrap_alloc(const std::_Wrap_alloc<std::allocator<char>> &) throw()' called instead of 'std::_Wrap_alloc<std::allocator<char>>::_Wrap_alloc<std::_Wrap_alloc<std::allocator<char>>>(_Other &) throw()'
with
[
_Other=std::_Wrap_alloc<std::allocator<char>>
]
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\xmemory0(809) : see declaration of 'std::_Wrap_alloc<std::allocator<char>>::_Wrap_alloc'
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\xmemory0(821) : see declaration of 'std::_Wrap_alloc<std::allocator<char>>::_Wrap_alloc'
// There are two hal libraries that are built
// - Desktop hal which is used by simulation (gcc/msvc)
// - Athena hal which is used by the roborio (arm)
apply plugin: 'cpp'
model {
platforms {
arm {
architecture "arm"
#include <LiquidCrystal.h>
const int buttonPin = 2;
/* volatile means tells compiler not to optimize these
* since they might be updated from an ISR
*/
volatile int hours, minutes, seconds;
LiquidCrystal lcd(12, 11, 6, 5, 4, 3);
Intro to Git (10:20 am)
Intro to Intro to Clarifai (10:50 am)
Intro to Machine Learning (11:10 am)
Intro to Vim (12:00 am)
Intro to Payments (12:50 pm)
Intro to Node.js (1:00 pm)
Intro to Android (1:15 pm)
Hackathon Tip 1 (1:25 pm)
Intro to HTML/CSS (1:35 pm)
Hackathon Tip 2 (2:05 pm)
public boolean equals(Object anObject) {
if (this == anObject) {
return true;
}
if (anObject instanceof String) {
String anotherString = (String)anObject;
int n = value.length;
if (n == anotherString.value.length) {
char v1[] = value;
char v2[] = anotherString.value;