Smart stores for Riot (like flux, based on ideas from RiotControl)
Small (<1.5Kb) flux-like store container.
Make sure loot.js is included in your page after riot.js:
This is the follow up to a post I wrote recently called From Require.js to Webpack - Party 1 (the why) which was published in my personal blog.
In that post I talked about 3 main reasons for moving from require.js to webpack:
Here I'll instead talk about some of the technical challenges that we faced during the migration. Despite the clear benefits in developer experience (DX) the setup was fairly difficult and I'd like to cover some of the challanges we faced to make the transition a bit easier.
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers
<Query Kind="Program"> | |
<NuGetReference Prerelease="true">Microsoft.Diagnostics.Runtime</NuGetReference> | |
<Namespace>Microsoft.Diagnostics.Runtime</Namespace> | |
<Namespace>System</Namespace> | |
<Namespace>System.IO</Namespace> | |
<Namespace>System.Linq</Namespace> | |
<Namespace>System.Text</Namespace> | |
<Namespace>Microsoft.Diagnostics.Runtime.Utilities</Namespace> | |
</Query> |
void Main() | |
{ | |
var searchWord = "TextToSearchFor"; | |
var searchPattern = "*.js"; | |
var sourceFolder = @"C:\_Dev\TFS\MyProject\Source\"; | |
var defaultProgram = @"C:\Program Files (x86)\Notepad++\notepad++.exe"; | |
List<string> allFiles = new List<string>(); | |
var fileCount = 0; |
select DISTINCT wp_posts.id, wp_posts.post_title, wp_posts.post_content, wp_posts.post_type, featured_image.guid as post_image, wp_posts.post_modified, wp_users.display_name | |
from wp_posts | |
inner join wp_postmeta on wp_posts.id = wp_postmeta.post_id and wp_postmeta.meta_key = '_thumbnail_id' | |
inner join wp_posts as featured_image on featured_image.id = wp_postmeta.meta_value | |
inner join wp_users on wp_users.id = wp_posts.post_author | |
where wp_posts.post_status = 'publish' | |
order by wp_posts.ID desc | |
limit 10 |
// This is an auto-generated file. | |
<#@ template language="C#" hostSpecific="true" debug="True" #> | |
<#@ output extension="cs" #> | |
<#@ assembly name="System.Core" #> | |
<#@ assembly name="EnvDte" #> | |
<#@ import namespace="System.Linq" #> | |
<#@ import namespace="System.IO" #> | |
<#@ import namespace="System.Collections.Generic" #> | |
<#@ import namespace="System.Text.RegularExpressions" #> | |
<#@ import namespace="System" #> |
// File: RollThroughLibrary/CreateMaps/JunctionPoint.cs | |
// User: Adrian Hum/ | |
// | |
// Created: 2017-11-19 2:46 PM | |
// Modified: 2017-11-19 6:10 PM | |
using System; | |
using System.Diagnostics.CodeAnalysis; | |
using System.IO; | |
using System.Runtime.InteropServices; |