Skip to content

Instantly share code, notes, and snippets.

TJ Nevis TJNevis

Block or report user

Report or block TJNevis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View NevTec-AngularJS-Competions.sublime-completions
{
"completions":
[
{ "trigger": "ng-new-module", "contents": "(function( angular ) {\n\n\tangular.module('${1:NewModuleName}', ['${2:OptionalDependencyList}'])\n\n\t$3\n\n}( angular ) );" },
{ "trigger": "ng-existing-module", "contents": "(function( angular ) {\n\n\tangular.module('${1:ExistingModuleName}')\n\n\t$2\n\n}( angular ) );" },
{ "trigger": "ng-constant-inline", "contents": ".constant('$1', '$2')" },
{ "trigger": "ng-controller", "contents": ".controller('$1', [${2/(?:.+)/'/g}${2/,[ ]*/', '/g}${2/(?:.+)/', /g}function ($2) {\n\t$3\n}])" },
{ "trigger": "ng-directive-inline", "contents": ".directive('$1', [${2/(?:.+)/'/g}${2/,[ ]*/', '/g}${2/(?:.+)/', /g}function ($2) {\n\n\treturn {\n\n\t\tlink: function(scope, element, attributes, controllers) {\n\n\t\t\t$3\n\n\t\t},\n\n\t\treplace: ${4:false},\n\n\t\trestrict: '${5:AE}',\n\n\t\tscope: {\n\t\t\t$6\n\t\t},\n\n\t\ttemplateUrl: '$7'\n\n\t}\n\n}])" },
View S3FixExistingMedia.php
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
/* ======================================================
This script is NOT FULLY TESTED (not tested on Windows Server either)
USE AT YOUR OWN RISK - development environment Ubuntu Linux 14.04.3 LTS
The purpose of this script is for small websites and blogs
You can’t perform that action at this time.