TL;DR
Install Postgres 9.5, and then:
sudo pg_dropcluster 9.6 main --stop
sudo pg_upgradecluster 9.5 main
sudo pg_dropcluster 9.5 main| package main | |
| import ( | |
| "fmt" | |
| "math" | |
| ) | |
| // Any local type | |
| type Vertex struct { | |
| X, Y float64 |
| /// Requires at least Flutter 3.x | |
| import 'dart:async'; | |
| import 'dart:ui' as ui; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:dio/dio.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| /// Fetches the given URL from the network, associating it with the given scale. | |
| /// |
| // Simple. This method allows you to make a request like http://myapi.com/api/batch?request=[{"url":"/api/profile/1", "type":"GET", "request_id":"1"}, {"url":"/api/profile/2", "type":"GET", "request_id":2}] | |
| $requests = \Input::get('request'); | |
| $requests = json_decode($requests); | |
| $output = array(); | |
| foreach ($requests as $request) { | |
| $url = parse_url($request->url); |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Demo', | |
| debugShowCheckedModeBanner: false, |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatefulWidget { | |
| @override | |
| _MyAppState createState() => _MyAppState(); | |
| } |
TL;DR
Install Postgres 9.5, and then:
sudo pg_dropcluster 9.6 main --stop
sudo pg_upgradecluster 9.5 main
sudo pg_dropcluster 9.5 main| # bash <(curl -s https://gist.github.com/drye/5387341/raw/ec72cddfe43ec3d39c91a3c118cb68ab14a049f8/enable_dnsmasq_on_osx.sh) | |
| # ---------------------- | |
| # installing dnsmasq and enable daemon | |
| # ---------------------- | |
| brew install dnsmasq | |
| sudo cp -v $(brew --prefix dnsmasq)/homebrew.mxcl.dnsmasq.plist /Library/LaunchDaemons | |
| # ---------------------- | |
| # adding resolver for vbox domain | |
| # ---------------------- |
To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
| const input = require("fs").readFileSync("day13-input.txt", "UTF-8"); | |
| function cycle() { | |
| keys = Object.keys(map); | |
| keys.forEach(key => { | |
| up = map[key]["up"]; | |
| depth = map[key]["length"]; | |
| if (up) { | |
| map[key]["state"] += 1; | |
| if (map[key]["state"] == depth - 1) { |
| const input = require("fs").readFileSync("day12-input.txt", "UTF-8"); | |
| pairs = {}; | |
| input.split("\n").forEach(row => { | |
| split = row.split(" <-> "); | |
| split[1] = split[1].split(", "); | |
| pairs[split[0]] = split[1]; | |
| }); | |
| count = 0; |