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
class MainActivity : AppCompatActivity(), GoogleApiClient.OnConnectionFailedListener { | |
private val RC_SIGN_IN = 9001 | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
val binding : MainActivityBinding = DataBindingUtil.setContentView(this, R.layout.activity_main) | |
val googleSignInOptions : GoogleSignInOptions = GoogleSignInOptions | |
.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) | |
.requestEmail() |
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
exports.params = { | |
host: 'yourMySqlDbHost', | |
port: 3306, | |
user: 'user', | |
password: 'password', | |
database: 'dbName' | |
} |
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 Cylon = require('cylon'); | |
// define the robot | |
var robot = Cylon.robot({ | |
// change the port to the correct one for your Arduino | |
connections: { | |
arduino: { adaptor: 'firmata', port: '/dev/ttyACM0' } | |
}, | |
devices: { |
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
describe('Transform._transform', function () { | |
describe('data mode', function() { | |
it('should prove that empty transform does nothing, but works', function(done) { | |
var transformStream = new Transform ({ | |
transform: function(chunk, encoding, cb) { | |
this.push(chunk); | |
cb(); | |
} | |
}); |
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
for(var arr in obj) { | |
arr.forEach(group) { | |
myGroups.forEach(myGroup) { | |
if(group === myGroup) { | |
//match found! | |
} | |
} | |
} | |
} |
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
/** | |
* | |
* Hackenstance | |
* | |
*/ | |
//Initial setup | |
var UI = require('ui'); | |
var selectedGroups = []; | |
var ajax = require('ajax'); |
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
<html> | |
<head> | |
<script src='https://cdn.firebase.com/js/client/2.0.4/firebase.js'></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<!--script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script--> | |
<!--script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/3.0.0/handlebars.min.js"></script--> | |
<!--script src="./javascripts/templates.js"></script--> | |
<!--link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css", rel="stylesheet"--> | |
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" /> |
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
/** | |
* Welcome to Pebble.js! | |
* | |
* This is where you write your app. | |
*/ | |
var UI = require('ui'); | |
var Settings = require('settings'); | |