- Run
npm install cordova-res --save-dev - Create
1024x1024pxicon atresources/icon.png - Create
2732x2732pxsplash atresources/splash.png - Add
"resources": "cordova-res ios && cordova-res android && node scripts/resources.js"toscriptsinpackage.json - Copy
resources.jsfile toscripts/resources.js - Run
sudo chmod -R 777 scripts/resources.js - Run
npm run resources
| admin.addPeer("enode://da0c61fe14ba9da1a9835b59d811553d21787448724cfe6412bc17f0b14586df91826d8286b2137342d09a8631df5ea548cf301294b05657c2a90f9c3d526721@143.198.119.44:30303"); | |
| admin.addPeer("enode://3e2287c6caf363357efc600611ccb777e6997ef8b749b1f87e94d3a7d2b466bbefba163b0620c88804f18bc70cfbe68538720ac2644fc1c970848488cdca0c7a@143.198.114.251:30303"); | |
| admin.addPeer("enode://15ea76b5d30ce9eaabf6a9a8fe5ca0ff032534d296b5b8ca6e00a730d08a4aaa019077c382a6b2d08ebc7cf6f8eb888f5e00e0dd378798e3459a555538654370@157.230.6.79:30303"); | |
| admin.addPeer("enode://2e718763172902a8fa4bcdda45f77a5c2688de5230e184d154e4867922b8f6ad23e1016379715cb5f55f6c79060563f93896035e35dfb47361d08599d4908ae8@143.198.118.178:30303"); | |
| admin.addPeer("enode://9d45f21eeb37bd5555fac0c4094ae3d4d144d93e2313aeb891bf3054b0dcf6ca817961ed29ea1de00389b5c36dc6bbe9b00443e367b16ed8ba251cea6c242044@94.176.237.140:30303"); | |
| admin.addPeer("enode://2493b5b8407ccb1c448d7ad358e838066640f273442730caf80acde2fe98522b1d9dcebd2dc982efe44911a49779888fe72defc181c29596facff05e1 |
| declare module 'luxon' { | |
| namespace luxon { | |
| type DateTimeFormat = any; | |
| type ZoneOptions = { | |
| keepCalendarTime?: boolean; | |
| }; | |
| type ToFormatOptions = { | |
| round: boolean; | |
| }; |
This configuration worked for me, hope it helps
It is based on: https://becominghuman.ai/deep-learning-gaming-build-with-nvidia-titan-xp-and-macbook-pro-with-thunderbolt2-5ceee7167f8b
and on: https://stackoverflow.com/questions/44744737/tensorflow-mac-os-gpu-support
| if let stream:InputStream = InputStream(fileAtPath: "/Users/pebble8888/hoge.txt") { | |
| var buf:[UInt8] = [UInt8](repeating: 0, count: 16) | |
| stream.open() | |
| while true { | |
| let len = stream.read(&buf, maxLength: buf.count) | |
| print("len \(len)") | |
| for i in 0..<len { | |
| print(String(format:"%02x ", buf[i]), terminator: "") | |
| } | |
| if len < buf.count { |
| import dbus | |
| import time | |
| bus = dbus.SystemBus() | |
| #Build a proxy for the Adapter | |
| adapter_proxy = bus.get_object("org.bluez", "/org/bluez/hci0") | |
| #Call the method StartDiscovery from the adapter api then StopDiscovery | |
| adapter_proxy.StartDiscovery(dbus_interface="org.bluez.Adapter1") |
| import dbus | |
| import time | |
| """ | |
| This gist will do the following things : | |
| 1. Setup GLib and a MainLoop. MainLoop is required to receive signals from the dbus | |
| 2. Define a simple callback function that will be associated to the signal "Properties Changed" for a specific object (Characteristic). | |
| The callback function will be called when the characteristic value is updated or it's property changed. | |
Javascript is a programming language with a peculiar twist. Its event driven model means that nothing blocks and everything runs concurrently. This is not to be confused with the same type of concurrency as running in parallel on multiple cores. Javascript is single threaded so each program runs on a single core yet every line of code executes without waiting for anything to return. This sounds weird but it's true. If you want to have any type of sequential ordering you can use events, callbacks, or as of late promises.
| """ Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
| import numpy as np | |
| import cPickle as pickle | |
| import gym | |
| # hyperparameters | |
| H = 200 # number of hidden layer neurons | |
| batch_size = 10 # every how many episodes to do a param update? | |
| learning_rate = 1e-4 | |
| gamma = 0.99 # discount factor for reward |
| curl -s -N --location https://www.washingtonpost.com/blogs/post-partisan/wp/2016/03/21/a-transcript-of-donald-trumps-meeting-with-the-washington-post-editorial-board/ \ | |
| | perl -0ne 'my @list = $_ =~ m/<p>TRUMP:(.*?)<\/p>/smg; print $list[rand @list]' \ | |
| | say --progress -i -r 300 -v Alex |