(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
$filePath = "C:\jeevan\sample.json" | |
$file = ([System.IO.File]::ReadAllText($filePath) | ConvertFrom-Json) | |
Write-Host $file.property1 | |
$file.property1 = Get-Random | |
$file | ConvertTo-Json | Out-File -FilePath $filePath -Encoding utf8 -Force |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
These are generic npm scripts that you can copy & paste into your package.json
file as-is and get access to convinience scripts to manage your Docker images all in one place.
Looking for npm scripts for AWS ECS? Go here!
Watch the video: Do More With Less JavaScript
docker pull duluca/minimal-nginx-web-server
docker pull duluca/minimal-node-web-server
var http = require("http"), | |
url = require("url"), | |
path = require("path"), | |
fs = require("fs") | |
port = process.argv[2] || 8080; | |
http.createServer(function(request, response) { | |
var uri = url.parse(request.url).pathname | |
, filename = path.join(process.cwd(), "public", uri); |
FROM jeevan90/tiny-node-http-server | |
WORKDIR /app | |
COPY ./dist public |
<location path="sitecore/shell/WebService"> | |
<system.web> | |
<authorization> | |
<allow users="?,*" /> | |
</authorization> | |
</system.web> | |
</location> |
UPDATE wp_postmeta SET meta_value = Round(meta_value*1.02, 2) WHERE meta_key = '_regular_price' AND meta_value != '' | |
UPDATE wp_postmeta SET meta_value = Round(meta_value*1.02, 2) WHERE meta_key = '_sale_price' AND meta_value != '' | |
UPDATE wp_postmeta SET meta_value = Round(meta_value*1.02, 2)WHERE meta_key = '_price' AND meta_value != '' | |
UPDATE wp_postmeta SET meta_value = Round(meta_value*1.02, 2) WHERE meta_key = '_regular_price_tmp' AND meta_value != '' | |
UPDATE wp_postmeta SET meta_value = Round(meta_value*1.02, 2) WHERE meta_key = '_sale_price_tmp' AND meta_value != '' | |
UPDATE wp_postmeta SET meta_value = Round(meta_value*1.02, 2) WHERE meta_key = '_price_tmp' AND meta_value != '' | |
UPDATE wp_postmeta SET meta_value = Round(meta_value*1.02, 2) WHERE meta_key = '_min_variation_price' AND meta_value != '' | |
UPDATE wp_postmeta SET meta_value = Round(meta_value*1.02, 2) WHERE meta_key = '_max_variation_price' AND meta_value != '' | |
UPDATE wp_postmeta SET meta_value = Round(meta_value*1.02, 2) WHERE meta_key = '_min_va |
update wp_postmeta AS wppostmeta | |
inner join wp_posts AS post | |
on post.ID = wppostmeta.post_id | |
set wppostmeta.meta_value = Round(wppostmeta.meta_value*1.03, 2) | |
where post.post_type = 'product' | |
and post_status = 'importlist' | |
and wppostmeta.meta_key = '_regular_price' |
export interface IStringTMap<T> { [key: string]: T; }; | |
export interface INumberTMap<T> { [key: number]: T; }; | |
export interface IStringAnyMap extends IStringTMap<any> {}; | |
export interface INumberAnyMap extends INumberTMap<any> {}; | |
export interface IStringStringMap extends IStringTMap<string> {}; | |
export interface INumberStringMap extends INumberTMap<string> {}; | |
export interface IStringNumberMap extends IStringTMap<number> {}; |