Playing with generators
A Pen by Dariusz Parys on CodePen.
| # Install ZSH | |
| sudo apt install zsh | |
| # Install oh-my-zsh | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
| # edit ~/.bashrc add as first command | |
| bash -c zsh | |
| # install nvm |
Playing with generators
A Pen by Dariusz Parys on CodePen.
| <configuration> | |
| <system.webServer> | |
| <staticContent> | |
| <remove fileExtension=".mem" /> | |
| <mimeMap fileExtension=".mem" mimeType="application/octet-stream" /> | |
| <remove fileExtension=".data" /> | |
| <mimeMap fileExtension=".data" mimeType="application/octet-stream" /> | |
| <remove fileExtension=".memgz" /> | |
| <mimeMap fileExtension=".memgz" mimeType="application/octet-stream" /> | |
| <remove fileExtension=".datagz" /> |
| /// <reference path="../App.js" /> | |
| // global app | |
| (function () { | |
| 'use strict'; | |
| // The initialize function must be run each time a new page is loaded | |
| Office.initialize = function (reason) { | |
| $(document).ready(function () { | |
| app.initialize(); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> | |
| <title>TaskPaneTest</title> | |
| <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js" type="text/javascript"></script> | |
| <link href="../../Content/Office.css" rel="stylesheet" type="text/css" /> | |
| <script src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.js" type="text/javascript"></script> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <Package | |
| xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" | |
| xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" | |
| xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" | |
| IgnorableNamespaces="uap mp"> | |
| <Identity | |
| Name="75e8f2a8-417e-4cc4-80f7-911b76c90cad" | |
| Version="1.0.0.0" |
| /// <reference path="phaser.min.js" /> | |
| //var phaserGame = new Phaser.Game(800, 600, Phaser.CANVAS, "demo", { preload: preload, create: create }); | |
| //function preload() { | |
| //} | |
| //function create() { | |
| // var text = phaserGame.add.text(200, 200, "Hallo, ich bin Phaser", { font: "30px Arial", fill: "#ff00ff" }); | |
| // text.anchor.setTo(0.5, 0.5); |
| @model IEnumerable<WebApplication8.Models.Session> | |
| <div data-role="page" id="seite1"> | |
| <div data-role="header"> | |
| <h1>VS Evolution Demo</h1> | |
| </div> | |
| <div data-role="content"> | |
| <div class="ui-grid-b ui-responsive"> | |
| @foreach (var item in Model) |
| public async Task<ActionResult> Index() | |
| { | |
| HttpClient client = new HttpClient(); | |
| var result = await client.GetAsync("http://vsevolution.azurewebsites.net/api/agenda/getsessions"); | |
| // In demos I give a fuck about error handling | |
| result.EnsureSuccessStatusCode(); | |
| var response = await result.Content.ReadAsAsync<Session[]>(); | |
| return View(response); |
| var MemeGenerator; | |
| (function (MemeGenerator) { | |
| var _canvasElement; | |
| var _canvas; | |
| var _image; | |
| var _x; | |
| var _y; | |
| var _text; | |
| var _width = 640; | |
| var _height = 480; |