Value object that depends on system time:
<?php
declare(strict_types=1);
namespace Xthiago;
final class BirthDateValue object that depends on system time:
<?php
declare(strict_types=1);
namespace Xthiago;
final class BirthDate| // the wizare functions | |
| var sendString = (function(rfb, force, sendDelay) { | |
| sendDelay = sendDelay || 25; | |
| var _q = []; | |
| var _qStart = function() { | |
| var chr = _q.shift(); | |
| if (chr) { | |
| rfb.sendKey(chr); | |
| setTimeout(_qStart, sendDelay); | |
| } |
Most recently tested on macOS Sierra (10.12.6)
curl https://bootstrap.pypa.io/get-pip.py -o ~/Downloads/get-pip.py--user flag; python ~/Downloads/get-pip.py --user. pip will be installed to ~/Library/Python/2.7/bin/pip~/Library/Python/2.7/bin is in your $PATH. For bash users, edit the PATH= line in ~/.bashrc to append the local Python path; ie. PATH=$PATH:~/Library/Python/2.7/bin. Apply the changes, source ~/.bashrc.--user when installing modules; ie. pip install <package_name> --user| package main | |
| import ( | |
| "log" | |
| "encoding/json" | |
| "fmt" | |
| "os" | |
| "math/rand" |
| import org.apache.spark.sql.functions._ | |
| import org.apache.spark.sql.SparkSession | |
| object DataFrameWithFileNameApp extends App { | |
| val spark: SparkSession = | |
| SparkSession | |
| .builder() | |
| .appName("DataFrameApp") | |
| .config("spark.master", "local[*]") |
| <?php | |
| /** | |
| * @PeopleAnnotation(description="Get all information about a people", type="class") | |
| */ | |
| class People { | |
| /** | |
| * @PeopleAnnotation(description="Use to people name", type="attribute") | |
| */ |
| <?php | |
| include '../vendor/autoload.php'; | |
| $classLoader = new \Doctrine\Common\ClassLoader('Entities', __DIR__); | |
| $classLoader->register(); | |
| $classLoader = new \Doctrine\Common\ClassLoader('Proxies', __DIR__); | |
| $classLoader->register(); | |
| // config | |
| $config = new \Doctrine\ORM\Configuration(); |
| import com.amazonaws.services.s3._, model._ | |
| import com.amazonaws.auth.BasicAWSCredentials | |
| val request = new ListObjectsRequest() | |
| request.setBucketName(bucket) | |
| request.setPrefix(prefix) | |
| request.setMaxKeys(pageLength) | |
| def s3 = new AmazonS3Client(new BasicAWSCredentials(key, secret)) | |
| val objs = s3.listObjects(request) // Note that this method returns truncated data if longer than the "pageLength" above. You might need to deal with that. |
| git config --global alias.cowsay '!git commit -m "`fortune | cowsay -f tux`"' |