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 python3 | |
import os | |
import sys | |
from getpass import getpass | |
import mysql.connector | |
host = input('Enter the host: ') | |
dir = host.title() |
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\Http\Requests; | |
class Validator | |
{ | |
/** | |
* Validate that an attribute is a valid day. | |
* |
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 animate(elem, options, duration, callback, callbackTimeout) { | |
var start = +new Date, | |
prop; | |
for (prop in options) { | |
var style = getComputedStyle(elem, ''), | |
value = options[prop], | |
px = style[prop].slice(-2), | |
currentValue = px == 'px' ? parseInt(style[prop]) : +style[prop], | |
unit = px == 'px' ? 'px' : ''; |