Sometimes you don't need all of jQuery's modules. Officially, you can use their Grunt script to build a slimmed-down jQuery, but what if Webpack is more your thing? Enter this guide.
- From your project root, install jQuery as a dev dependency:
const awsTool = new DynamicTool({ | |
name: "aws-cli", | |
description: | |
"This is AWS CLI. You can call this to send commands to the AWS Cloud. Use AWS CLI format like `aws s3api list-buckets`", | |
async func(command) { | |
const args = command.split(" ").filter((x) => x !== "aws"); | |
const result = spawnSync("aws", args, { | |
env: { | |
...process.env, | |
AWS_REGION: "eu-central-1", |
[ | |
{ | |
"name": "Afghanistan", | |
"code": "AF", | |
"capital": "Kabul", | |
"region": "AS", | |
"currency": { | |
"code": "AFN", | |
"name": "Afghan afghani", | |
"symbol": "؋" |
Sometimes you don't need all of jQuery's modules. Officially, you can use their Grunt script to build a slimmed-down jQuery, but what if Webpack is more your thing? Enter this guide.
List of desktop Nvidia GPUS ordered by CUDA core count
I created it for those who use Neural Style
Guys, please add your hardware setups, neural-style configs and results in comments!
GPU | CUDA cores | Memory | Processor frequency | Memory Bandwidth (GB/sec) |
---|---|---|---|---|
Geforce GTX TITAN Z | 5760 | 12 GB | 705 / 876 | 673 |
############################################################### | |
Apache Installation | |
############################################################### | |
# Install required tools for compilation | |
sudo yum install autoconf expat-devel libtool libnghttp2-devel pcre-devel -y | |
# Download source code | |
cd #switch to home dir | |
curl -O -L https://github.com/apache/httpd/archive/2.4.37.tar.gz #latest stable release Apache |
I've been deceiving you all. I had you believe that Svelte was a UI framework — unlike React and Vue etc, because it shifts work out of the client and into the compiler, but a framework nonetheless.
But that's not exactly accurate. In my defense, I didn't realise it myself until very recently. But with Svelte 3 around the corner, it's time to come clean about what Svelte really is.
Svelte is a language.
Specifically, Svelte is an attempt to answer a question that many people have asked, and a few have answered: what would it look like if we had a language for describing reactive user interfaces?
A few projects that have answered this question:
A modest proposal for a first-class destiny operator equivalent in Svelte components that's also valid JS.
Svelte 2 has a concept of computed properties, which are updated whenever their inputs change. They're powerful, if a little boilerplatey, but there's currently no place for them in Svelte 3.
This means that we have to use functions. Instead of this...
<!-- Svelte 2 -->
<h1>HELLO {NAME}!</h1>
import {CustomError} from "./error/custom-error.interface"; | |
require('dotenv').config(); | |
import {RequestHandler} from 'express'; | |
import {MongoClient} from 'mongodb'; | |
let client: MongoClient; | |
const connectToClientIfDropped: () => Promise<void> = async () => { | |
if (client && client.isConnected()) { |
Combining TensorFlow for Poets and TensorFlow.js.
Retrain a MobileNet V1 or V2 model on your own dataset using the CPU only.
I'm using a MacBook Pro without Nvidia GPU.
MobileNets can be used for image classification. This guide shows the steps I took to retrain a MobileNet on a custom dataset, and how to convert and use the retrained model in the browser using TensorFlow.js. The total time to set up, retrain the model and use it in the browser can take less than 30 minutes (depending on the size of your dataset).
Example app - HTML/JS and a retrained MobileNet V1/V2 model.
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent