<?php
namespace App;
use Auth;
use Illuminate\Database\Eloquent\Model as Eloquent;
class BaseModel extends Eloquent{
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
<!-- HEAD SECTION --> | |
<!-- IE Edge Meta Tag --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<!-- Viewport --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Minified CSS --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> |
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
<!-- main.html (html input and js for open new window with elFinder for select file) --> | |
<input type="text" class="form-control" value="" id="idOfInput" onfocus="return openElFinder(event, 'idOfInput');"/> | |
<script> | |
$( document ).ready(function() { | |
window.input_id = ''; | |
window.openElFinder = function (event, input_id) { | |
event.preventDefault(); | |
window.single = true; |
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 | |
if(isset($_POST['source'])) { | |
$source = $_POST['source']; | |
if(isset($_POST['type']) && 'php' == $_POST['type']) { | |
$code = highlight_string($source, true); | |
$output = $code; | |
} else { | |
$code = htmlentities($source); |
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> | |
<head> | |
<!-- Meta conf --> | |
<meta charset="UTF-8"> | |
<!-- Meta info --> | |
<title>HTML5 Microdata Resume (CV) Template</title> | |
<meta name="description" content="An example of how to layout a semantic html5 page for a curriculum vitae/resume"> | |
<meta name="keywords" content="template, html, semantic, microdata, resume, cv, curriculum, vitae"> | |
</head> |
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 | |
$db = Yii::$app->db; | |
$sql = $db->queryBuilder->batchInsert($table, $fields, $rows); | |
$db->createCommand($sql . ' ON DUPLICATE KEY UPDATE')->execute(); |
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 declare(strict_types=1); | |
require_once "✨.🐘"; | |
✨($_)->strlen("foo")->var_dump($_); |
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
#!/usr/bin/perl | |
use Mysql; | |
use strict; | |
use vars qw($school_name); | |
use vars qw($pass); | |
require "./cgi-lib.pl"; |
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
# Disable Directory listing | |
Options -Indexes | |
# block files which needs to be hidden // in here specify .example extension of the file | |
<Files ~ "\.(env|json|config.js|md|gitignore|gitattributes|lock)$"> | |
Order allow,deny | |
Deny from all | |
</Files> | |
# in here specify full file name sperator '|' |
jQuery source is now authored using ES6 modules. It's possible to use them directly in the browser without any build process.
To test it locally, first clone the jQuery repository:
git clone git@github.com:jquery/jquery.git
Then, write the following index.html
file: