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
{ | |
"path": "C:/Program Files (x86)/clisp-2.48/", | |
"cmd": ["clisp", "-i $file -x (main())"], | |
"selector": "source.lisp" | |
} | |
/* | |
(defun main (args) | |
(print "hello world") | |
(quit))*/ |
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
{ | |
"path": "C:/dev/Python27", | |
"cmd": ["python", "$file"], | |
"file_regex": "^[ ]*File \"(…*?)\", line ([0-9]*)", | |
"selector": "source.python" | |
} | |
/* | |
print "hello world" | |
*/ |
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
public interface IUserNancyModule { User CurrentUser { get; set; } } | |
public static class Hooks { | |
public static Func<NancyContext, Response> SetUserFromRequest(IUserNancyModule module, IAttensiContext db) { | |
return (ctx) => { | |
var usr = db.Users.FirstOrDefault(u=>u.EmployeeId == ctx.CurrentUser.UserName); | |
if (usr!=null) { | |
module.CurrentUser = usr; | |
return null; //let request pass | |
} else { |
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
var C = { | |
regCalibStart: 0x88, | |
regChipID: 0xd0, | |
regReset: 0xe0, | |
regCalibStart2: 0xe1, | |
regCtrlHum: 0xf2, | |
regStatus: 0xf3, | |
regCtrlMeas: 0xf4, | |
regConfig: 0xf5, | |
regMeasurementsStart: 0xf, |
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
#include <Braccio.h> | |
#include <Servo.h> | |
Servo base; | |
Servo shoulder; | |
Servo elbow; | |
Servo wristRotate; | |
Servo wristVertical; | |
Servo gripper; |
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
/* | |
Braccio.h - Library for controlling the Arduino Robotic Arm; Braccio! | |
Copyright (c) 2016 - Alexander Brevig | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either | |
version 2.1 of the License, or (at your option) any later version. | |
This library is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
#include <Braccio.h> | |
Braccio robot; | |
void setup() { | |
robot.useShield(); | |
robot.home(); | |
} | |
void loop() { //DANCE! |
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
#include <Servo.h> | |
#include <Braccio2.h> | |
Servo base; | |
Servo shoulder; | |
Servo elbow; | |
Servo wrist; | |
Servo rotate; | |
Servo gripper; |
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
#pragma once | |
#include <string> | |
#include <cmath> | |
#include <fstream> | |
#include <iostream> | |
using namespace std; | |
class WAVfile | |
{ |
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
#include <iostream> // std::cout | |
#include <fstream> // std::ifstream | |
#include <chrono> | |
#include <thread> | |
#define MIDI_DEBUG(s) (s); | |
using namespace std; | |
//expect total size and current size to be available | |
class fileinfo { |