(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.
| package main | |
| import ( | |
| "fmt" | |
| "sync" | |
| ) | |
| func main() { | |
| var wg sync.WaitGroup | |
| done := make(chan struct{}) |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "net/url" | |
| "os" | |
| "strings" |
| package main | |
| import "fmt" | |
| type person struct { | |
| Name string | |
| Age int | |
| } | |
| func main() { |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| // c := make(chan struct{}, 1) | |
| c := make(chan struct{}) |
| // http://www.sensefulsolutions.com/2012/01/viewing-chrome-cache-easy-way.html | |
| (function() { | |
| var preTags = document.getElementsByTagName('pre'); | |
| var preWithHeaderInfo = preTags[0]; | |
| var preWithContent = preTags[2]; | |
| var lines = preWithContent.textContent.split('\n'); | |
| // get data about the formatting (changes between different versions of chrome) | |
| var rgx = /^(0{8}:\s+)([0-9a-f]{2}\s+)[0-9a-f]{2}/m; |
| imap <expr><TAB> | |
| \ neosnippet#expandable_or_jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : | |
| \ emmet#getFileType()=='html' && match(getline('.'), '<.*>')<0 ? emmet#expandAbbrIntelligent("\<plug>(emmet-move-next)") : | |
| \ pumvisible() ? "\<C-n>" : | |
| \ "\<TAB>" |
(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.
| import {HttpClient} from 'aurelia-fetch-client' | |
| import {Authentication} from './authentication'; | |
| import {BaseConfig} from './baseConfig' | |
| import {inject} from 'aurelia-framework'; | |
| import {Storage} from './storage'; | |
| @inject(HttpClient, Authentication, Storage, BaseConfig) | |
| export class FetchConfig { | |
| constructor(httpClient, authService, storage, config){ | |
| this.httpClient = httpClient; |
| define(function(require){ | |
| //var React = require('react'); | |
| var jQuery = require('jquery'); | |
| //var TemplatesPanel = require('modules/pathboard/common/views/templatesPanel'); | |
| //var Templates = require('modules/pathboard/common/models/templates'); | |
| //var templates = new Templates(); | |
| //var Loading = require('ui/react/loading'); | |
| //var Panel = require('ui/react/modals/panel'); |
| sudo easy_install pip | |
| pip install --user neovim |