This content has moved.
Please go to bagder/TRRprefs for the current incarnation of the docs, and please help us out polish and maintain this documentation!
const getContiguousIds = ({ | |
contiguousIds = [], | |
node, | |
nodes, | |
}) => ( | |
node | |
.adjacentIds | |
.reduce( | |
( | |
contiguousIds, |
import React, { Component } from 'react'; | |
import { Icon } from "antd"; | |
class VideoDetail extends Component { | |
state = { | |
video: null | |
}; | |
componentDidUpdate(prevProps) { | |
if( this.props.video && ( prevProps.video !== this.props.video) ) { |
import sys | |
from tweepy import OAuthHandler | |
from tweepy import API | |
from tweepy import Stream | |
from tweepy.streaming import StreamListener | |
# Replace the "None"s by your own credentials | |
ACCESS_TOKEN = None | |
ACCESS_TOKEN_SECRET = None |
using Newtonsoft.Json; | |
using RestSharp; | |
using RestSharp.Serialization; | |
namespace JsonNetRestSharp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
import * as cocoSsd from "@tensorflow-models/coco-ssd"; | |
const image = document.getElementById("image") | |
cocoSsd.load() | |
.then(model => model.detect(image)) | |
.then(predictions => console.log(predictions)) |
export default { | |
props: { | |
src: { | |
required: true, | |
type: String | |
}, | |
type: { | |
required: true, | |
type: String |
// ******************************************************************* | |
// ATTENTION | |
// This gist is now an npm module | |
// The API of some functions is altered slightly. | |
// All future work will happen in the repo. | |
// | |
// https://gitlab.com/rhythnic/vuex-intern | |
// ******************************************************************* | |
// ******************************************************************* |
This content has moved.
Please go to bagder/TRRprefs for the current incarnation of the docs, and please help us out polish and maintain this documentation!
When using the vue-webpack-boilerplate, you will have only a production build by default (besides dev and test setups). My team often has at least another environment we call "staging" where the client can test new features before we move them to production. Oftentimes, these environments will have env-specific config values, like a different API URL.
With the changes outlined below, you can create a separate config per environment. This assumes you've created a Vue.js project with vue-webpack-boilerplate.
npm run build staging
it will build your project with the config values specific to your staging environment.
You can easily add any number of other environments and build them the same way.
npm run build
or npm run build production
will still build your production environment.secret
byte you want to read is stored at inaccessible memory location priv_mem
.priv_mem
.secret
from priv_mem
and the use of its value in (4) and (5) below may execute before the exception is triggered.offset
into a known array probe
by multiplying secret
by the width of a cache line (or whatever block size the CPU typically fetches, like a 4096-byte page). This guarantees each of those 256 possible offsets will cache separately.probe[offset]
, which causes the CPU to cache exactly one chunk of of our array, populating one cache line.probe
to find out which one loads fast. You've determined the value of secret
.