Creating a new PHPExcel Object.
$this->PHPExcel = new PHPExcel();
Creating a new sheet:
| <?php | |
| class JobOpening | |
| { | |
| private $key; | |
| private $encryptedJobDetails; | |
| private $jobDetails; |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Process\Process; | |
| class RefreshApp extends Command | |
| { | |
| /** |
| $filename_tmp = []; | |
| $filename_tmp[0] = base_path() . "/000.mp4"; | |
| $filename_tmp[2] = base_path() . '/audio.mp3'; | |
| $ffmpeg = FFMpeg\FFMpeg::create([ | |
| 'ffmpeg.binaries' => config('pilot.PATH_FFMPEG'), | |
| 'ffprobe.binaries' => config('pilot.PATH_FFPROBE'), | |
| ]); | |
| $video = $ffmpeg->open($filename_tmp[0]); | |
| $video |
| <?php | |
| /** | |
| * gMaps Class | |
| * | |
| * Pega as informações de latitude, longitude e zoom de um endereço usando a API do Google Maps | |
| * | |
| * @author Michel MElo | |
| */ | |
| class gMaps { | |
| private $mapsKey; |
| <?php | |
| $ipas = glob('*.ipa'); | |
| $provisioningProfiles = glob('*.mobileprovision'); | |
| $plists = glob('*.plist'); | |
| $sr = stristr( $_SERVER['SCRIPT_URI'], '.php' ) === false ? | |
| $_SERVER['SCRIPT_URI'] : dirname($_SERVER['SCRIPT_URI']) . '/'; | |
| $provisioningProfile = $sr . $provisioningProfiles[0]; | |
| $ipa = $sr . $ipas[0]; |
| <?php | |
| function instagram_id_to_url($instagram_id){ | |
| $url_prefix = "https://www.instagram.com/p/"; | |
| $parts = explode('_', $instagram_id); | |
| $instagram_id = $parts[0]; | |
| $userid = $parts[1]; | |
| $alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'; | |
| while($instagram_id > 0) { | |
| $remainder = $instagram_id % 64; |
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| import sublime_plugin | |
| import subprocess | |
| from time import sleep | |
| import sys | |
| cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip() | |
| log = lambda message: sys.stderr.write("Log: %s\n" % message) |
| extension UIButton{ | |
| func addTextSpacing(spacing: CGFloat){ | |
| let attributedString = NSMutableAttributedString(string: (self.titleLabel?.text!)!) | |
| attributedString.addAttribute(NSKernAttributeName, value: spacing, range: NSRange(location: 0, length: (self.titleLabel?.text!.characters.count)!)) | |
| self.setAttributedTitle(attributedString, for: .normal) | |
| } | |
| } | |
| btnRegister.addTextSpacing(spacing: 4.5) |
| curl -O http://ftp.gnu.org/gnu/wget/wget-1.17.tar.gz | |
| tar -xzf wget-1.17.tar.gz | |
| cd wget-1.17 | |
| ./configure --with-ssl=openssl | |
| ./configure --with-ssl=openssl --with-libssl-prefix=/usr/local/ssl | |
| make | |
| sudo make install | |
| wget --help | |
| cd .. && rm -rf wget* |