$bid = 'myblock';
$block = \Drupal\block_content\Entity\BlockContent::load($bid);
$render = \Drupal::entityTypeManager()->getViewBuilder('block_content')->view($block);
$block_manager = \Drupal::service('plugin.manager.block');
25/5/2020
Imagine a future where a user Alice has bitcoins and wants to send them with maximal privacy, so she creates a special kind of transaction. For anyone looking at the blockchain her transaction appears completely normal with her coins seemingly going from address A to address B. But in reality her coins end up in address Z which is entirely unconnected to either A or B.
Now imagine another user, Carol, who isn't too bothered by privacy and sends her bitcoin using a regular wallet which exists today. But because Carol's transaction looks exactly the same as Alice's, anybody analyzing the blockchain must now deal with the possibility that Carol's transaction actually sent her coins to a totally unconnected address. So Carol's privacy is improved even though she didn't change her behaviour, and perhaps had never even heard of this software.
v3.0.0 | v3.1.0 | v3.1.1 | master | |
---|---|---|---|---|
v3.0.0 | Y | |||
v3.1.0 | X | |||
v3.1.1 | X | |||
master | X | X | X | X |
$imageStyle = \Drupal::entityTypeManager()->getStorage('image_style'); | |
$styles = $imageStyle->loadMultiple(); | |
foreach ($styles as $style) { | |
$imageStyle->load($style->get('name'))->flush(); | |
} |
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
import React from 'react'; | |
const MIN_SCALE = 1; | |
const MAX_SCALE = 4; | |
const SETTLE_RANGE = 0.001; | |
const ADDITIONAL_LIMIT = 0.2; | |
const DOUBLE_TAP_THRESHOLD = 300; | |
const ANIMATION_SPEED = 0.04; | |
const RESET_ANIMATION_SPEED = 0.08; | |
const INITIAL_X = 0; |
import jenkins.* | |
import jenkins.model.* | |
import hudson.* | |
import hudson.model.* | |
nodes = Jenkins.getInstance().getGlobalNodeProperties() |
package main | |
import ( | |
"encoding/hex" | |
"fmt" | |
"github.com/btcsuite/btcd/btcec" | |
"github.com/btcsuite/btcd/chaincfg" | |
"github.com/btcsuite/btcd/txscript" | |
"github.com/btcsuite/btcd/wire" |
var http = require('http'); | |
function checkTxPresent(txId, txIndex, cb) { | |
var keytx = 'to' + txId + '_' + txIndex; | |
var str = ''; | |
var fileurl = "http://peercoinfindstakedata.divshot.io/json/" + keytx + '.json'; | |
var handleRes = function (res) { | |
var isOK = (res.statusCode == 200); | |
res.on('data', function (chunk) { |