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 | |
| { | |
| /** |
| #!/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) |
| 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* |
| if (Ti.Geolocation.locationServicesEnabled) { | |
| Titanium.Geolocation.purpose = 'Get Current Location'; | |
| Titanium.Geolocation.getCurrentPosition(function(e) { | |
| if (e.error) { | |
| Ti.API.error('Error: ' + e.error); | |
| } else { | |
| Ti.API.info(e.coords); | |
| } | |
| }); | |
| } else { |
| function get_remote_file(filename, url, fn_end, fn_progress ) { | |
| Ti.API.info("[filename]" + filename); | |
| Ti.API.info("[url]" + url); | |
| var file_obj = {file:filename, url:url, path: null}; | |
| var file = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory,filename); | |
| if ( !file.exists() ) { |
| // load sound from remote url | |
| Ti.API.log(item.value.value1); // While the crash occurs, this contains 'http://stadtfestradio.argovia.ch/live' | |
| var streamer = Ti.Media.createAudioPlayer({url:item.value.value1, bufferSize: 4096}); | |
| var isPlaying = false; | |
| var container = Ti.UI.createView(api.combine($$.ContentChildView, {top:topMargin})); | |
| parent.add(container); | |
| var stack = Ti.UI.createView({ | |
| left: 65, | |
| layout: 'vertical', | |
| width:Ti.UI.SIZE, |
| var win = Ti.UI.currentWindow; | |
| // Set the window orientation modes for the video to rotate with the device | |
| win.orientationModes = [ Ti.UI.PORTRAIT, Ti.UI.LANDSCAPE_LEFT, | |
| Ti.UI.LANDSCAPE_RIGHT ]; | |
| // Build the movie URL. 'fs' and 'autoplay' parameters are optional. | |
| var movieId = "d0llSyfgwEE"; | |
| var movieUrl = "http://www.youtube.com/embed/" + movieId+ "?fs=1&autoplay=1"; |
| /** | |
| * Filename: Call.js | |
| * Author: Codeboxed | |
| * URL: http://www.codeboxed.com | |
| * Date: March 26, 2011 | |
| * Platform: Titanium | |
| */ | |
| /** | |
| * Call |