(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.
(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.
public static UIImage Blur(this UIImage image, float blurRadius = 25f) | |
{ | |
if (image != null) | |
{ | |
// Create a new blurred image. | |
var imageToBlur = new CIImage (image); | |
var blur = new CIGaussianBlur (); | |
blur.Image = imageToBlur; | |
blur.Radius = blurRadius; | |
func extractColor(image: UIImage){ | |
let pixel = UnsafeMutablePointer<CUnsignedChar>.alloc(4) | |
let colorSpace:CGColorSpace = CGColorSpaceCreateDeviceRGB() | |
let bitmapInfo = CGBitmapInfo(CGImageAlphaInfo.PremultipliedLast.rawValue) | |
let context = CGBitmapContextCreate(pixel, 1, 1, 8, 4, colorSpace, bitmapInfo) | |
CGContextDrawImage(context, CGRectMake(0, 0, 1, 1), image.CGImage) | |
var color: UIColor? = nil | |
if pixel[3] > 0 { |
# Add this snippet to the top of your playbook. | |
# It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
# [email protected] | |
- hosts: all | |
gather_facts: False | |
tasks: | |
- name: install python 2 | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps
After installing react-native-maps
from npm:
Drag this folder node_modules/react-native-maps/lib/ios/AirGoogleMaps/
into your project, and choose Create groups
in the popup window.
In xcode, right click on Libraries
-> Add files to [your project]
, and navigate to and add node_modules/react-native-maps/lib/ios/AirMaps.xcodeproj
. Select Copy files is necessary
and Create groups
.
I wanted to give a little bit of a discussion on all my thinking about why UI's are a tricky to get right in Rust. I want to try and differentiate this discussion because there are a number of decent UI frameworks that have been bound to Rust. This is great! I do not want to discourage any of their work, they are wonderful members of our community.
What this is about is how it would be possible to write a good UI framework
# Add this snippet to the top of your playbook. | |
# It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
# [email protected] | |
- hosts: all | |
gather_facts: False | |
tasks: | |
- name: install python 2 | |
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal) |
// A very basic chatroom example: | |
import { JSONCodec, Msg } from 'nats.ws' | |
import { FormEvent, useState } from 'react' | |
import './App.css' | |
import { useNats, useNatsSubscription } from './useNats' | |
const natsSubject = 'chat' | |
const sc = JSONCodec() |