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
#!/usr/bin/env python | |
# Run with no args for usage instructions | |
# | |
# Notes: | |
# - will probably insert duplicate records if you load the same file twice | |
# - assumes that the number of fields in the header row is the same | |
# as the number of columns in the rest of the file and in the database | |
# - assumes the column order is the same in the file and in the database | |
# |
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 | |
/** | |
* This file is part of Namespace for Magento. | |
* | |
* @license All rights reserved | |
* @author Phuong LE <[email protected]> <@> | |
* @category Namespace | |
* @package Namespace_Core | |
* @copyright Copyright (c) 2016 Agence Soon (http://www.agence-soon.fr) | |
*/ |
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
# IIS Site Creation Tool | |
# Verion: 0.0.1 | |
# Author: Tommy Ready <[email protected]> | |
# Description: Powershell Tool for auto creation of IIS sites per the user logged in. | |
# Run Command: C:\> .\iis-site-creator.ps1 | |
$current_user = $env:UserName | |
$user_iis_folder = "C:\sites\$current_user" | |
$shared_directory = "C:\sites\shared" | |
$shared_media_direectory = $shared_directory + "\Data" |
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 | |
namespace App\Services; | |
class ImapService { | |
protected $imapHost; | |
protected $imapEmail; | |
protected $imapPassword; | |
protected $searchCriteria; |
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
#!/usr/bin/env python | |
import ConfigParser | |
import os | |
import time | |
import getpass | |
def combine_files(self,file1,file2): | |
with open('file1', 'w') as outfile: | |
with open(file2) as infile: |
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
#!/usr/bin/env python | |
import ConfigParser | |
import os | |
import time | |
import getpass | |
def get_dump(): | |
print "Enter user:" | |
user = raw_input() |
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
import os, sys | |
import math | |
import boto | |
import string | |
import shutil | |
from os import path | |
from os import stat | |
from array import * | |
from time import gmtime, strftime | |
from boto.s3.key import Key |
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
import git | |
import string | |
import os | |
from os import path | |
from git import * | |
from subprocess import call | |
class gitConnect(): | |
def deploy(self): |
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 | |
namespace App\Services; | |
class PDOService { | |
private $connection; | |
public function __construct($connection) { | |
$this->connection = $connection; |
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
<script type="text/javascript" language="javascript"> | |
var img = document.getElementById("myImage"); | |
img.addEventListener("click", function(event) { | |
var canvas = document.createElement('canvas'); | |
canvas.width = img.width; | |
canvas.height = img.height; | |
canvas.getContext('2d').drawImage(img, 0, 0, img.width, img.height); | |
var p = canvas.getContext('2d').getImageData(event.offsetX, event.offsetY, 1, 1).data; | |
var hex = "#" + ("000000" + rgbToHex(p[0], p[1], p[2])).slice(-6); |
NewerOlder