Update: There is a more secure version available. Details
<?php
$plaintext = 'My secret message 1234';| import React, { Component } from 'react' | |
| import { render } from 'react-dom' | |
| import { createStore, bindActionCreators } from 'redux' | |
| import { connect, Provider } from 'react-redux' | |
| const increment = () => ({ type: 'increment' }) | |
| const counter = (state = 0, action) => { | |
| switch (action.type) { |
| (function() { | |
| 'use strict'; | |
| angular | |
| .module('myModule') | |
| .directive('myDirective', myDirective); | |
| const template = ` | |
| <div class="my-directive-template"> | |
| <h1>Using multi-line Strings for templates</h1> |
| [mysqld_safe] | |
| nice = -15 | |
| [mysqld] | |
| max_binlog_size = 256M #max size for binlog before rolling | |
| expire_logs_days = 1 #binlog files older than this will be purged | |
| ## Per-Thread Buffers * (max_connections) = total per-thread mem usage | |
| thread_stack = 256K #default: 32bit: 192K, 64bit: 256K | |
| sort_buffer_size = 1M #default: 2M, larger may cause perf issues |
| function asyncFunc(e) { | |
| return new Promise((resolve, reject) => { | |
| setTimeout(() => resolve(e), e * 1000); | |
| }); | |
| } | |
| const arr = [1, 2, 3]; | |
| let final = []; | |
| function workMyCollection(arr) { |
| <?php | |
| namespace Jobs; | |
| use Illuminate\Queue\InteractsWithQueue; | |
| use Illuminate\Redis\Database as Redis; | |
| class Foo extends Job | |
| { | |
| use InteractsWithQueue; |
| <?php | |
| require_once 'vendor/autoload.php'; | |
| require_once 'container.php'; | |
| $app = Container::getInstance(); | |
| $app->bind('database', function($app) { | |
| $database = new Illuminate\Database\Capsule\Manager($app); |
| <?php | |
| /** | |
| * simple method to encrypt or decrypt a plain text string | |
| * initialization vector(IV) has to be the same when encrypting and decrypting | |
| * | |
| * @param string $action: can be 'encrypt' or 'decrypt' | |
| * @param string $string: string to encrypt or decrypt | |
| * | |
| * @return string | |
| */ |
Update: There is a more secure version available. Details
<?php
$plaintext = 'My secret message 1234';| $ docker service ps mysite | |
| ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR | |
| ad0lvaxnsbgcirz5botfle2k3 mysite.1 wordpress ubuntu-node01 Running Running 7 minutes ago | |
| 3w6vx7b5kbykgmnpl4n3xgz95 mysite.2 wordpress ubuntu-node02 Running Running less than a second ago | |
| btjrw6f33rud9vh6wa4pinzhj mysite.3 wordpress ubuntu-node03 Running Preparing 28 seconds ago | |
| ab1p9p075zvwlb3t1g5f1n8ww mysite.4 wordpress ubuntu-node04 Running Preparing 28 seconds ago |
| <?php | |
| class Lunar | |
| { | |
| const MIN_YEAR = 1891; | |
| const MAX_YEAR = 2100; | |
| const LUNAR_INFO = [ | |
| [0, 2, 9, 21936], [6, 1, 30, 9656], [0, 2, 17, 9584], [0, 2, 6, 21168], [5, 1, 26, 43344], [0, 2, 13, 59728], | |
| [0, 2, 2, 27296], [3, 1, 22, 44368], [0, 2, 10, 43856], [8, 1, 30, 19304], [0, 2, 19, 19168], [0, 2, 8, 42352], |