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
// This will open up a prompt for text to send to a console session on digital ocean | |
// Useful for long passwords | |
(function () { | |
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split(""); | |
function f() { | |
var character = t.shift(); | |
var i=[]; | |
var code = character.charCodeAt(); | |
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -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
const sketcher = require('canvas-sketch-tool'); // not yet public | |
// Import geometry & utilities | |
const createRegl = require('regl'); | |
const createPrimitive = require('primitive-icosphere'); | |
const createCamera = require('perspective-camera'); | |
const glslify = require('glslify'); | |
const hexRgb = require('hex-rgb'); | |
// Utility to convert hex string to [ r, g, b] floats |
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 | |
$view = new View($this, false); | |
$view->set(compact('some', 'vars')); | |
$html = $view->render('view_name'); |
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 /* The Uploader class is a simple php script that makes file | |
* uploads a bit easier. | |
* @author Junaid Qadir Baloch ([email protected]) | |
* @version 0.1 10:18 PM 7/30/2011 | |
*/ | |
class Uploader | |
{ | |
private $allowedFileTypes; | |
private $maxFileSize = 1048576; | |
private $fileInputBoxName; |