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
Dim fso,f,strPathBuild,destFolder,clientFolder,newFile | |
'This is where we searching for the files to move | |
'This is also where the sub directories are located | |
destFolder = "F:\envista_data_files\Client Data" | |
'Create the File System Object that will do all file/folder manipulations | |
Set fso=CreateObject("Scripting.FileSystemObject") | |
'Create the folder object we are going to start searching in | |
Set f = fso.GetFolder(destFolder) | |
'Regular Expression to identify client id/code |
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
abbr -a g 'git' | |
abbr -a ga 'git add' | |
abbr -a gaa 'git add --all' | |
abbr -a gapa 'git add --patch' | |
abbr -a gb 'git branch' | |
abbr -a gba 'git branch -a' | |
abbr -a gbda 'git branch --merged | command grep -vE "^(\*|\s*master\s*\$)" | command xargs -n 1 git branch -d' | |
abbr -a gbl 'git blame -b -w' | |
abbr -a gbnm 'git branch --no-merged' | |
abbr -a gbr 'git branch --remote' |
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
server { | |
listen 127.0.0.1:80; | |
server_name 127.0.0.1; | |
location /nginx_status { | |
stub_status on; | |
allow 127.0.0.1; | |
deny all; | |
} | |
} |
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
'***************************************************************** | |
Const adSaveCreateOverWrite = 2 | |
Const adTypeBinary = 1 | |
Dim htmlSrc, dstDir | |
htmlSrc = InputBox("Enter Html File Name") & ".html" | |
dstDir = InputBox("Enter Folder Name To Place Images") | |
'***************************************************************** | |
'** Download the image | |
' strResult = GetImage(strSource, strDest) | |
getImgTagUrl htmlSrc, dstDir |
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 | |
namespace App\Models\Traits; | |
trait WhereHasWithTrait | |
{ | |
public function scopeWhereHasWith($query, $relation, \Closure $closure) | |
{ | |
return $query->whereHas($relation, $closure)->with([$relation => $closure]); | |
} |
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
set_real_ip_from 103.21.244.0/22 | |
set_real_ip_from 103.22.200.0/22 | |
set_real_ip_from 103.31.4.0/22; | |
set_real_ip_from 104.16.0.0/12; | |
set_real_ip_from 108.162.192.0/18; | |
set_real_ip_from 131.0.72.0/22; | |
set_real_ip_from 141.101.64.0/18; | |
set_real_ip_from 162.158.0.0/15; | |
set_real_ip_from 172.64.0.0/13; | |
set_real_ip_from 173.245.48.0/20; |
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
SED=`which sed` | |
CURRENT_DIR=`dirname $0` | |
echo "What is the domain?" | |
read DOMAIN | |
# check the domain is valid! | |
PATTERN="^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-Za-z0-9])$"; | |
if [[ "$DOMAIN" =~ $PATTERN ]]; then | |
DOMAIN=`echo $DOMAIN | tr '[A-Z]' '[a-z]'` |
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
const StateList = [ | |
{id: 'AL', name: 'Alabama'}, | |
{id: 'AK', name: 'Alaska'}, | |
{id: 'AZ', name: 'Arizona'}, | |
{id: 'AR', name: 'Arkansas'}, | |
{id: 'CA', name: 'California'}, | |
{id: 'CO', name: 'Colorado'}, | |
{id: 'CT', name: 'Connecticut'}, | |
{id: 'DE', name: 'Delaware'}, | |
{id: 'DC', name: 'District Of Columbia'}, |
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
(function (angular) { | |
angular.module('column.totals', []) | |
.directive('columnTotal', ['$timeout', function ($timeout) { | |
function getOffset(elem) { | |
let offset = 0; | |
let prev = elem.previousElementSibling; | |
while (prev) { | |
offset++; | |
prev = prev.previousElementSibling; | |
} |
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 | |
namespace EasyXML; | |
use SimpleXMLElement; | |
use DOMDocument; | |
use Closure; | |
class Element extends SimpleXMLElement | |
{ |
OlderNewer