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 Discord = require("discord.js"); | |
var mybot = new Discord.Client(); | |
mybot.on("message", function(message){ | |
if(message.content === "ping") | |
mybot.reply(message, "pong"); | |
}); |
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
function verticalFunction() { | |
return 'This'; | |
} | |
function horizontalFunction() { | |
return 'That'; | |
} |
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
Database: | |
entries | |
- id | |
- user_id | |
- team_id | |
users | |
- id | |
- name |
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
$entry = Entry::with(['user' => function($query) use ($user, $team) { | |
$query->where('id', '=', $user)->with(['team' => function($q) use ($team) { | |
$q->where('id', '=', $team); | |
}]); | |
}])->get(); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Bootstrap 101 Template</title> | |
<!-- Bootstrap http://www.building58.com/examples/tabSlideOut.html--> | |
<link href="css/bootstrap.min.css" rel="stylesheet"> |
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
CREATE TABLE `schedule` ( | |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | |
`scheduled_on` datetime DEFAULT NULL, | |
`desc` varchar(100) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; | |
Route::get('test', function() { | |
//Get database data as objects |
NewerOlder