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
out vec3 vViewDirection; // varying to send to the fragment shader | |
void main() | |
{ | |
vec4 viewDirection = modelViewMatrix * vec4( position, 1.0 ); | |
vViewDirection = viewDirection.xyz; // set view direction per pixel | |
gl_Position = projectionMatrix * viewDirection; |
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
const {task, dest, src, watch, series} = require('gulp'); | |
const sass = require('gulp-sass'); | |
const sourcemaps = require('gulp-sourcemaps'); | |
const browsersync = require('browser-sync').create(); | |
sass.compiler = require('node-sass'); | |
function style(cb) | |
{ | |
return src('./assets/styles/sass/**/*.scss') | |
.pipe(sourcemaps.init()) |
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
<?php | |
class hookSystem | |
{ | |
/** | |
* @abstract Objects array | |
* @access Private | |
*/ | |
private static $objects = array(); | |
/** | |
* @abstract Settings array |
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
<?php | |
$phpExt = ''; | |
$phpLoadedExt = get_loaded_extensions(); | |
foreach($phpLoadedExt as $ext) | |
{ | |
$phpExt .= "${ext}<br />"; | |
} | |
echo $phpExt; |
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
$ServerModules = ''; | |
$ApacheMods = apache_get_modules(); | |
foreach($ApacheMods as $mods) | |
{ | |
$ServerModules .= "${mods}<br />"; | |
} | |
echo $ServerModules; |
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
<?php | |
function strToCharArray($text) | |
{ | |
$txtLen = strlen($text); | |
$charArray; | |
for($i = 0; $i < $txtLen; $i++) | |
{ | |
$charArray[$i] = $text{$i}; | |
} |
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
<?php | |
$ip = $_SERVER["REMOTE_ADDR"]; | |
$port = substr($_SERVER["REMOTE_PORT"],0,2); | |
$browser = $_SERVER["HTTP_USER_AGENT"]; | |
$hostname = gethostbyaddr($ip); |
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
<?php | |
function hypotenuse($A, $B) | |
{ | |
if(is_numeric($A) && is_numeric($B)) | |
{ | |
return sqrt(($A * $A) + ($B * $B)); | |
} | |
else | |
{ |
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
<?php | |
function RentalPayment($Principle, $IntRate, $PayPerYear, $NumYears) | |
{ | |
$numer; $denom; $b; $e; | |
$numer = $IntRate * $Principle / $PayPerYear; | |
$e = -($PayPerYear * $NumYears); | |
$b = ($IntRate / $PayPerYear) + 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
<?php | |
function reverse( $text ) | |
{ | |
$txtLen = strlen( $text ); | |
$rtn = ""; | |
for ( $i = $txtLen - 1; $i >= 0; $i-- ) | |
{ | |
$rtn .= $text{$i}; |
NewerOlder