video #22: Props
in Vue.js, data gets passed down as a prop from one component to another.
video #23: Primitive vs Reference Types
primitive types are STRINGS, BOOLEANS, and NUMBERS reference types are OBJECTS and ARRAYS
video #22: Props
in Vue.js, data gets passed down as a prop from one component to another.
video #23: Primitive vs Reference Types
primitive types are STRINGS, BOOLEANS, and NUMBERS reference types are OBJECTS and ARRAYS
import java.math.BigInteger; | |
import java.nio.charset.Charset; | |
import java.security.MessageDigest; | |
import java.util.Random; | |
import javax.crypto.Cipher; | |
import javax.crypto.spec.IvParameterSpec; | |
import javax.crypto.spec.SecretKeySpec; | |
import org.apache.commons.codec.binary.Base64; |
const key = (x, y) => { | |
return x + ',' + y | |
} | |
const unkey = k => { | |
return k.split(',').map(s => parseInt(s)) | |
} | |
/* Given an x, y coordinate and a hashmap "x,y" => boolean values that indicate whether or not the tile at that | |
coordinate is blocked, this function will calculate the bitmask sum of the given coordinate. */ | |
function computeBitmask(x, y, blockedCells) { |
//author @TraderX0 | |
//script to plot daily Open high and low | |
//version 1.1 | |
//last edited 22/11/2018 | |
//title | |
study(title="TraderX0__O_H_L", shorttitle="TraderX0_O_H_L", overlay=true) | |
// holds the daily price levels | |
openPrice = security(tickerid, 'D', open) |
var R = require('ramda'); | |
void 0; //to not bloat the output | |
var random = require('seed-random')(1337); | |
var data = [ | |
{input: [0, 0], output: 0}, | |
{input: [1, 0], output: 1}, | |
{input: [0, 1], output: 1}, | |
{input: [1, 1], output: 0}, | |
]; | |
var activation_sigmoid = x => 1 / (1 + Math.exp(-x)); |
<?php | |
session_start(); | |
$_SESSION['count'] = time(); | |
$image; | |
?> | |
<title>demo.php</title> | |
<body style="background-color:#ddd; "> | |
<?php |
all: test libtest.so testmodule | |
libtest.so: libtest.c | |
$(CC) -Wall -g -fPIC -shared -o $@ $? -lc | |
test: test_main.c libtest.o | |
$(CC) -o $@ $? | |
testmodule: testmodule.c | |
python setup.py build |
const Web3 = require('web3') | |
const Tx = require('ethereumjs-tx').Transaction | |
// connect to Infura node | |
const web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io/INFURA_KEY')) | |
// the address that will send the test transaction | |
const addressFrom = '0x1889EF49cDBaad420EB4D6f04066CA4093088Bbd' | |
const privateKey = new Buffer('PRIVATE_KEY', 'hex') |
echo-server-epoll | |
echo-server-poll | |
talk | |
talk.dSYM |