Skip to content

Instantly share code, notes, and snippets.

View rjayako's full-sized avatar

Ryan J rjayako

  • Canada
View GitHub Profile
onLoginPressed(){
this.setState({showProgress:true});
var b = new buffer.Buffer(this.state.username +':'+ this.state.password);
var encodedAuth = b.toString('base64');
fetch('https://api.github.com/user',{
headers:{
'Authorization' : 'Basic' + encodedAuth
}
})
.then((response)=>{
@rjayako
rjayako / meteor error log
Created September 24, 2015 23:06
meteor error log
/Users/user/.meteor/packages/meteor-tool/.1.1.4.kc8rwo++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:278
throw(ex);
^
Error: EACCES, mkdir '/Users/user/dev/myApp/.meteor/local'
at Object.Future.wait (/Users/user/.meteor/packages/meteor-tool/.1.1.4.kc8rwo++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/fibers/future.js:398:15)
at Object.wrapper [as mkdir] (/Users/user/.meteor/packages/meteor-tool/.1.1.4.kc8rwo++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/files.js:1350:24)
at Object.files.mkdir_p (/Users/user/.meteor/packages/meteor-tool/.1.1.4.kc8rwo++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/files.js:403:11)
at Object.files.mkdir_p (/Users/user/.meteor/packages/meteor-tool/.1.1.4.kc8rwo++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/tools/files.js:393:23)
at launchOneMongoAndWaitForReadyForInitiate (/Users/user/.meteor/packages/meteor-too
@rjayako
rjayako / BAmySQL.sql
Created April 6, 2011 19:30
raw copy of work for backup.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 5.1.44 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create Database menagerie;
Query OK, 1 row affected (0.03 sec)
mysql> use menagerie;
@rjayako
rjayako / Database.class.php
Created March 30, 2011 04:27
Database class
<?php
/**
* Created by Ryan J | ryanjayako@gmail.com
* Date:
* Version : v1.1
*/
include("config.ini.php");
@rjayako
rjayako / week15.sql
Created March 22, 2011 19:55
My week 15 and week 16 assignment with output.
/*By Ryan Jayakody*/
USE sh;
/*Adding 4 part records into part table*/
INSERT INTO part(Partno,Partdesc,Onhand,Partclass,Unitprice) VALUES('1','Bolt for engine 3',3,'AP',50.15);
INSERT INTO part(Partno,Partdesc,Onhand,Partclass,Unitprice) VALUES('2','Bolt for engine 6',2,'KI',30.85);
INSERT INTO part(Partno,Partdesc,Onhand,Partclass,Unitprice) VALUES('3','Bolt for engine 1',6,'HW',20.75);
INSERT INTO part(Partno,Partdesc,Onhand,Partclass,Unitprice) VALUES('4','Bolt for engine 9',0,'SP',70.25);
@rjayako
rjayako / Database.php
Created March 21, 2011 04:20
Database query object
<?php
/**
* Created by JetBrains PhpStorm.
* User: ryanjayakody
* Date: 11-03-09
* Time: 3:52 PM
* To change this template use File | Settings | File Templates.
*/
include("config.ini");
@rjayako
rjayako / Database.php
Created March 21, 2011 04:20
Database query object
<?php
/**
* Created by JetBrains PhpStorm.
* User: ryanjayakody
* Date: 11-03-09
* Time: 3:52 PM
* To change this template use File | Settings | File Templates.
*/
include("config.ini");
try{
Room room = new Room(-1,-1,-1);
}
catch(IllegalArgumentException e){
System.out.println(e.getMessage());
//JOptionPane.showMessageDialog(null, e.getMessage(), "Troll", JOptionPane.ERROR_MESSAGE);
}
FileController :
public class FileController implements ActionListener {
public void actionPerformed(ActionEvent e) {
System.out.println("Action!:" + e.getActionCommand());
if( e.getActionCommand().equals(Command.LOAD.toString())){
doLoad();
}