type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| import 'dart:collection'; | |
| import 'package:flutter/material.dart'; | |
| void main() => runApp(new MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return new MaterialApp( |
| { | |
| "Africa/Abidjan": "+00:00", | |
| "Africa/Accra": "+00:00", | |
| "Africa/Addis_Ababa": "+03:00", | |
| "Africa/Algiers": "+01:00", | |
| "Africa/Asmara": "+03:00", | |
| "Africa/Asmera": "+03:00", | |
| "Africa/Bamako": "+00:00", | |
| "Africa/Bangui": "+01:00", | |
| "Africa/Banjul": "+00:00", |
| ;;;; | |
| ; npm userconfig file | |
| ; this is a simple ini-formatted file | |
| ; lines that start with semi-colons are comments. | |
| ; read `npm help config` for help on the various options | |
| ;;;; | |
| ;;;; | |
| ; all options with default values | |
| ;;;; |
| $small-desktop: 960px; | |
| $large-desktop: 1200px; | |
| $handheld: 768px; | |
| $handhelds-landscape: 1024px; | |
| $mobile: 640px; | |
| $mobile-landscape: 480px; | |
| @mixin respond-to($media) { | |
| @if $media == largeDesktop { | |
| @media only screen and (min-width: $large-desktop) { @content } |
| import socket | |
| import fcntl | |
| import struct | |
| def getHwAddr(ifname): | |
| s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
| info = fcntl.ioctl(s.fileno(), 0x8927, struct.pack('256s', ifname[:15])) | |
| return ''.join(['%02x:' % ord(char) for char in info[18:24]])[:-1] |