$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
#!/usr/bin/python3 | |
from math import ceil | |
from typing import List, Tuple | |
from random import randint | |
def bit_count(num: int) -> int: | |
''' | |
Same as len(bin(num)[2:]) |
// This file is MIT Licensed. | |
// | |
// Copyright 2017 Christian Reitwiessner | |
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF O |
These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.
--[[ | |
LSTM cell. Modified from | |
https://github.com/oxford-cs-ml-2015/practical6/blob/master/LSTM.lua | |
--]] | |
local LSTM = {} | |
-- Creates one timestep of one LSTM | |
function LSTM.lstm(opt) | |
local x = nn.Identity()() |
You can become your own gateway in two simple steps! Here we'll show how easy it is to issue your own currency on the Stellar network.
1: A user extends trust to your gateway account for a "maximum" amount of your currency. Remember, they're trusting you'll honor whatever your currency represents when they give it back to you.
$ curl -X POST https://test.stellar.org:9002 -d '
{
"method": "submit",
Here's what I did to get things working.
Yep, over at: https://developer.apple.com
// http://en.wikipedia.org/wiki/Pairing_function | |
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func InvertedCantorPairing(z int) (int, int) { | |
w := int(math.Floor((math.Sqrt(float64(8*z+1)) - 1) / 2)) |
Here I'm trying to understand what happens when I run
./hello
#include