(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.
| #!/usr/bin/Rscript | |
| emg <- read.csv("emg_s1.csv", header = FALSE, sep = "|", dec = ",") | |
| View(emg) | |
| attach(emg) | |
| par(mfrow = c(4, 5)) | |
| for(data in 1:20) { | |
| position <- paste(c("V", data), collapse = "") |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Support\Facades\Route; | |
| use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; | |
| class RouteServiceProvider extends ServiceProvider | |
| { | |
| /** |
| import {Sql} from "../providers/Sql"; | |
| export class ExamplePage { | |
| constructor(private sql: Sql) { | |
| //sql.query(...); | |
| //... | |
| } | |
| } |
| (function() { | |
| var script, | |
| scripts = document.getElementsByTagName('script')[0]; | |
| function load(url) { | |
| script = document.createElement('script'); | |
| script.async = true; | |
| script.src = url; | |
| scripts.parentNode.insertBefore(script, scripts); |
| LOL |
(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.
| function triple(x) { | |
| return x * 3; | |
| } | |
| triple(30); | |
| // 90 |
| let triple = function (x) { | |
| return x * 3; | |
| } | |
| triple(3); // output: 9 | |
| let anotherVariable = triple; | |
| anotherVariable(30); // output: 90 |
| let warrior = { | |
| hp: 100, | |
| strength: 20, | |
| attack: function(target) { | |
| target.hp -= this.strength; | |
| } | |
| } | |
| let enemy = { | |
| hp: 100, |
| portugueseHello = function () { | |
| return "Olá, "; | |
| } | |
| englishHello = function () { | |
| return "Hello, "; | |
| } | |
| francaisHello = function () { | |
| return "Bonjour, "; |