(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.
| def send_event(socket, component \\ nil, event, payload) do | |
| cid = case component do | |
| %Phoenix.LiveComponent.CID{cid: cid} -> cid | |
| _ -> nil | |
| end | |
| send( | |
| socket.root_pid, | |
| %Phoenix.Socket.Message{ | |
| event: "event", |
(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.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script type="text/javascript" src="https://code.angularjs.org/1.5.5/angular.js"></script> | |
| </head> | |
| <body> | |
| <div ng-app="TestApp"> | |
| <div test-directive> |
| var Benchmark = require('benchmark'); | |
| function complete() { | |
| console.log(String(this)); | |
| } | |
| var objDeleteBenchmark = new Benchmark('Object#delete-property', { | |
| setup: function() { | |
| var obj = { | |
| foo: { |
| var Benchmark = require('benchmark'); | |
| function complete() { | |
| console.log(String(this)); | |
| } | |
| var objDeleteBenchmark = new Benchmark('Object#delete-property', { | |
| setup: function() { var obj = {foo: 'bar'}; }, | |
| fn: function() { delete obj.foo; } | |
| }); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| .class1.class2.class3.class4.class5.class6.class7.class8.class9.class10.class11.class12.class13.class14.class15.class16.class17.class18.class19.class20.class21.class22.class23.class24.class25.class26.class27.class28.class29.class30.class31.class32.class33.class34.class35.class36.class37.class38.class39.class40.class41.class42.class43.class44.class45.class46.class47.class48.class49.class50.class51.class52.class53.class54.class55.class56.class57.class58.class59.class60.class61.class62.class63.class64.class65.class66.class67.class68.class69.class70.class71.class72.class73.class74.class75.class76.class77.class78.class79.class80.class81.class82.class83.class84.class85.class86.class87.class88.class89.class90.class91.class92.class93.class94.class95.class96.class97.class98.class99.class100.class101.class102.class103.class104.class105.class106.class107.class108.class109.class110.class111.class112.class113.class114.class115.class116.class117.class118.class119.class120.c |
| <?xml version="1.0" encoding="utf-8"?> | |
| <MonoGameJoystickConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
| <BUTTON_START> | |
| <INPUT_TYPE>Button</INPUT_TYPE> | |
| <INPUT_ID>7</INPUT_ID><!-- Wjoy '-' --> | |
| <INPUT_INVERT>false</INPUT_INVERT> | |
| </BUTTON_START> | |
| <!-- | |
| <BUTTON_BACK> | |
| <INPUT_TYPE>Button</INPUT_TYPE> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <MonoGameJoystickConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
| <BUTTON_START> | |
| <INPUT_TYPE>Button</INPUT_TYPE> | |
| <INPUT_ID>6</INPUT_ID><!-- Wjoy '+' --> | |
| <INPUT_INVERT>false</INPUT_INVERT> | |
| </BUTTON_START> | |
| <BUTTON_BACK> | |
| <INPUT_TYPE>Button</INPUT_TYPE> | |
| <INPUT_ID>7</INPUT_ID><!-- Wjoy '-' --> |
| From 0b1b114f5824be2fd4feb26eddfbb349813971cb Mon Sep 17 00:00:00 2001 | |
| From: Paul Statezny <[email protected]> | |
| Date: Sat, 31 Jan 2015 20:49:49 -0700 | |
| Subject: [PATCH] Create new dispatcher upon dispatch. | |
| --- | |
| lib/dispatcher.js | 6 ++++++ | |
| 1 file changed, 6 insertions(+) | |
| diff --git a/lib/dispatcher.js b/lib/dispatcher.js |
| function unit | |
| # Remove logging portion of phpunit configuration | |
| sed -i .sedbackup 's/\<\/logging\>//g' ./phpunit.xml | |
| sed -i .sedbackup 's/\<logging\>//g' ./phpunit.xml | |
| rm *.sedbackup | |
| if set -q argv[1] | |
| vendor/bin/phpunit --filter $argv[1] | |
| else | |
| vendor/bin/phpunit |