type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| { | |
| // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | |
| // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | |
| // List of extensions which should be recommended for users of this workspace. | |
| "recommendations": [ | |
| "castwide.solargraph", | |
| "mhutchie.git-graph", | |
| "connorshea.vscode-ruby-test-adapter", | |
| "elliotlarson.ruby-around-the-block", |
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( |
| [[headers]] | |
| for = "/*" | |
| [headers.values] | |
| X-Frame-Options = "DENY" | |
| X-XSS-Protection = "1; mode=block" | |
| X-Content-Type-Options = "nosniff" | |
| Referrer-Policy = "no-referrer" | |
| Content-Security-Policy = ''' | |
| default-src 'self'; | |
| font-src fonts.gstatic.com; style-src 'self' fonts.googleapis.com; |
| { | |
| "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] |
| import socket | |
| s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
| while True: | |
| message = input("Enter your message: ") | |
| s.sendto(message.encode('utf-8'), ('localhost', 9000)) | |
| s.close() |