This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../chart-js/chart-js.html"> | |
| <link rel="import" href="../code-mirror/code-mirror.html"> | |
| <link rel="import" href="../paper-button/paper-button.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: static; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @JS() | |
| library IncrementalDOM; | |
| import 'dart:html'; | |
| import 'dart:async'; | |
| import 'package:js/js.dart'; | |
| @JS() | |
| external void elementOpenStart(String nameOrCtor, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib | |
| export CXX=/usr/local/bin/g++ | |
| export CC=/usr/local/bin/gcc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Animal { | |
| Animal() { | |
| _render(); | |
| } | |
| _render() {} | |
| } | |
| class Dog extends Animal { | |
| Dog() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library petitparser.core.actions.action; | |
| import 'package:dart_server_test/src/core/combinators/delegate.dart'; | |
| import 'package:dart_server_test/src/core/contexts/context.dart'; | |
| import 'package:dart_server_test/src/core/contexts/result.dart'; | |
| import 'package:dart_server_test/src/core/parser.dart'; | |
| /// Typed action callback. | |
| typedef R ActionCallback<T, R>(T value); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //coroutine pseudo code explanation | |
| <hio> Okay I think I understand now why it's so hard for me to grok this, there is no regular programming API for this. Right? Who is supposed to offer an API for this, is this supposed to come from the compiler, like GCC? | |
| <hio> i think not, many people do create their own coroutine libraries so it's clearly not necessary to deal with the compiler | |
| <hio> but there is a lack of programming api surface, like.. C doesnt expose this stuff right? | |
| <hio> or is it the OS that doesnt expose it properly? | |
| <hio> I think it is probably the OS in combination with the system C library that should be offering an API to interact with the current stackframes etc. right? | |
| <hio> I feel like this isnt even a "low level" problem necessarily, you just need to get some reflection type access in your language and C/c++ dont have that so it's awkward and weirdly complex, like here c# actually allows access to stackframes: https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.stackframe?redire |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export DARTIUM_EXPIRATION_TIME=1577836800; ./chrome-wrapper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE users ( | |
| profile_id UUID PRIMARY KEY DEFAULT gen_random_uuid(), | |
| last_updated TIMESTAMP DEFAULT now(), | |
| user_profile JSONB); | |
| insert into users (user_profile) values ('{"first_name":"Patrick", "friends" : 888}'); | |
| update users SET user_profile = json_set(user_profile,ARRAY['first_name'],'"heyyy"')::jsonb where user_profile->'first_name' @> to_json('Patrick'); | |
| // FULL default record update, deleting all other fields: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # run these commands on a Centos 7 server as root | |
| yum install -y pcp pcp-webapi pcp-system-tools | |
| chkconfig pmcd on | |
| service pmcd start | |
| chkconfig pmlogger on | |
| service pmlogger start | |
| chkconfig pmwebd on | |
| service pmwebd start | |
| # open port 44323 in the firewall | |
| # To start vector on your laptop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang='`en'> | |
| <head> | |
| <meta charset='utf-8'/> | |
| <title>Audio only stream example</title> | |
| <script src='https://cdn.dashjs.org/latest/dash.all.min.js'></script> | |
| <style> | |
| video { |