This file contains hidden or 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 MYPDF extends TCPDF { | |
protected $is_last_page = false; | |
//Page header | |
public function Header() { | |
// Logo | |
$image_file = K_PATH_IMAGES.'logo_example.jpg'; | |
$this->Image($image_file, 10, 10, 15, '', 'JPG', '', 'T', false, 300, '', false, false, 0, false, false, false); | |
// Set font |
This file contains hidden or 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
{ | |
"name": "express-ejs", | |
"main": "server.js", | |
"scripts": { | |
"app": "nodemon server" | |
}, | |
"dependencies": { | |
"body-parser": "^1.15.0", | |
"cookie-parser": "^1.4.1", | |
"ejs": "^2.4.1", |
This file contains hidden or 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 express = require("express"); | |
var app = express(); | |
var port = 8082; | |
var cookieParser = require("cookie-parser"); | |
var bodyParser = require("body-parser"); | |
app.use(express.static(__dirname + "/public")); | |
app.use(morgan("dev")); | |
app.use(bodyParser); |
This file contains hidden or 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
# author: Eric Yohansa | |
import random | |
NUM_OF_PLAYERS = 4 | |
NUM_OF_DICE = 6 | |
class Game(): |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |