Skip to content

Instantly share code, notes, and snippets.

View vicmars5's full-sized avatar
🏠
Working from home

Victor Diaz vicmars5

🏠
Working from home
View GitHub Profile
@KeanW
KeanW / bb8-ollie-cylon-controller.js
Last active April 22, 2016 04:05
JavaScript code using Cylon.js to drive an Ollie and a BB-8 behind a web-service
var Cylon = require('cylon');
var cyrob = Cylon.robot({
connections: {
bluetooth_ollie: { adaptor: 'central', uuid: '1259a8ff5b694bf39c77d235fa8ade26', module: 'cylon-ble'},
bluetooth_bb8: { adaptor: 'central', uuid: '971cf6561dec4974ab9d266927873778', module: 'cylon-ble'}
},
devices: {
@rob-murray
rob-murray / add_intellij_launcer
Last active September 17, 2024 14:14
Add Intellij launcher shortcut and icon for ubuntu
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ
@webdesserts
webdesserts / Gulpfile.js
Last active April 3, 2023 08:16
Automatically reload your node.js app on file change with Gulp (https://github.com/wearefractal/gulp).
// NOTE: I previously suggested doing this through Grunt, but had plenty of problems with
// my set up. Grunt did some weird things with scope, and I ended up using nodemon. This
// setup is now using Gulp. It works exactly how I expect it to and is WAY more concise.
var gulp = require('gulp'),
spawn = require('child_process').spawn,
node;
/**
* $ gulp server
* description: launch the server. If there's a server already running, kill it.
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var assert = require('assert')
console.log('\n===========');
console.log(' mongoose version: %s', mongoose.version);
console.log('========\n\n');
var dbname = 'testing_geojsonPoint';