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\Services; | |
class ImapService { | |
protected $imapHost; | |
protected $imapEmail; | |
protected $imapPassword; | |
protected $searchCriteria; |
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
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 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 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); |
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
import os | |
import datetime | |
import re | |
import socket | |
import struct | |
import uuid | |
def normalize_ipv4(ip): | |
try: |
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
component { | |
this.name = 'MyApp' & hash(getCurrentTemplatePath()); | |
this.applicationTimeout = createTimeSpan(1,0,0,0); | |
this.sessionTimeout = createTimeSpan(1,0,0,0); | |
this.sessionManagement = true; | |
this.setClientCookies = false; | |
public boolean function onApplicationStart() { | |
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
<cfscript> | |
writeDump( getCurrentFboRates() ); | |
LOCAL.aircraftTypeId = 1440; | |
LOCAL.startRange = 1; | |
LOCAL.endRange = 99; | |
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
using System; | |
using System.IO; | |
namespace tLogger | |
{ | |
public class Log | |
{ | |
private static Int32 maxFileSize = 10240000; // 10 MB |
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
<cfscript> | |
public string function combinePaths(required array paths) { | |
var fullPath = ""; | |
for(var p=1; p <= ArrayLen(paths); p++) { | |
fullPath &= paths[p]; | |
if(Right(paths[p],1) == "\") continue; // Continue to Next iteration if \ is already there | |
if(len((trim(GetFileFromPath(paths[p]) == 0)))) break; // Exit Loop on File Found // File should be last element in array | |
fullPath &= "\"; | |
} | |
return fullPath; |
NewerOlder