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
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)=>{ |
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
/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 |
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 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; |
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
<?php | |
/** | |
* Created by Ryan J | ryanjayako@gmail.com | |
* Date: | |
* Version : v1.1 | |
*/ | |
include("config.ini.php"); | |
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
/*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); |
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
<?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"); |
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
<?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"); |
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
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); | |
} | |
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
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(); | |
} |