View ng-let.directive.ts
import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
class NgxLetContext {
ngxLet: any;
}
/*
* Example usage
* <ng-container *ngxLet="person$ | async as person">
* <h1>{{person.name}}</h1>
View my_pmpro_memberslist_extra_cols_header_startdate.php
/*
Show start date of current membership on the members list
and members list CSV export.
By default, PMPro will show the "Join Date" on the members list,
which is the date the WP user was created. If you need to know
the date the user upgraded to their current level, you can
add this code to your active theme's functions.php or a custom plugin.
*/
View curl_1.php
<?php
// http://proxyhttp.net/list/anonymous-server-hide-ip-address/3#proxylist
// $Query = "CREATE TABLE usvers_lj(id BIGINT AUTO_INCREMENT PRIMARY KEY, name text,flag BIGINT) ENGINE=MyISAM CHARACTER SET=utf8";
// define ('TOR','127.0.0.1:8118');
require_once("mysql.php");
if(isset($_POST['start'])) { $us_number=$_POST['start']; define ('USVER_NUMBER',$us_number);} else
define('USVER_NUMBER','28000');
if(isset($_POST['proxy'])) { $proxy_val=$_POST['proxy']; define ('TOR',$proxy_val);} else
View observer.pattern.md

Note sull'Observer pattern e tutti i pattern correlati (perché c'è confusione...)

"Observer pattern" aka PubSub aka ...

Observable => osservabile, pubblica, produce, è il soggetto.

  • aka Publisher
  • aka Producer
  • aka "Pub"
View sbt_init.sh
#!/bin/bash
if [ -z "$1" ] ; then
echo 'Project name is empty'
exit 1
fi
PROJECT_NAME="$1"
SCALA_VERSION="${2-2.11.8}"
SCALATEST_VERSION="${3-2.2.6}"
View gist:0bb80bf25fe030a35bd0e6bf5eb1b81a
fn main(){
println!("{}", cubed(5));
}
fn cubed(input:i64) -> i64
{
return input * input * input;
View form.js
const url = '/wp-admin/admin-ajax.php'
const data = {
action: 'custom_action',
token: document.querySelector('[name="token"]').value,
name: document.querySelector('[name="name"]').value
}
customRequest(url, data) // ...
View components.test-input.js
import Component from '@ember/component';
export default Component.extend({
testValue: '',
actions: {
keyUp(e) {
const value = e.target.value;
this.set('testValue', value);
console.log(value);
}
View systemd console mess
[31m*ESC[1;31m*ESC[0m] A start job is running for /etc/rc....patibility (1min 26s / no limit)^MESC[K[ ESC[31m*ESC[1;31m*ESC[0mESC[31m*ESC[0m] A start job is running for /etc/rc....patibility (1min
27s / no limit)^MESC[K[ ESC[31m*ESC[1;31m*ESC[0mESC[31m* ESC[0m] A start job is running for /etc/rc....patibility (1min 27s / no limit)^MESC[K[ ESC[31m*ESC[1;31m*ESC[0mESC[31m* ESC[0m] A start job
is running for /etc/rc....patibility (1min 28s / no limit)^MESC[K[ESC[31m*ESC[1;31m*ESC[0mESC[31m* ESC[0m] A start job is running for /etc/rc....patibility (1min 28s / no limit)^MESC[K[ESC[1;31m*
ESC[0mESC[31m* ESC[0m] A start job is running for /etc/rc....patibility (1min 29s / no limit)^MESC[K[ESC[0mESC[31m* ESC[0m] A start job is running for /etc/rc....patibility (1min 29s / no limi
t)^MESC[K[ESC[1;31m*ESC[0mESC[31m* ESC[0m] A start job is running for /etc/rc....patibility (1min 30s / no limit)^MESC[K[ESC[31m*ESC[1;31m*ESC[0mESC[31m* ESC[0m] A start job is running for /etc/
rc....patibility (1min 30s /