- OS - High Sierra 10.13
- Tensorflow - 1.4
- Xcode command line tools - 8.0 (Download from here: Xcode - Support - Apple Developer & Switch to different clang version:
sudo xcode-select --switch /Library/Developer/CommandLineTools& check version:clang -v) - Cmake - 3.7
- Bazel - 0.7.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var harToPostman = require('har2postman'); | |
| var fs = require('fs'); | |
| var args = process.argv.slice(2); | |
| var filename = args[0] | |
| var file = __dirname + '/' + filename | |
| console.log(`Reading har from ${file}.`) | |
| fs.readFile(file, function (err, data) { | |
| if (err) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| query repositoryForksWithMostStars($repositoryOwner: String!, $repositoryName: String!) { | |
| repository(owner: $repositoryOwner, name: $repositoryName) { | |
| url | |
| forks(orderBy: {field: STARGAZERS, direction: DESC}, first: 10) { | |
| nodes { | |
| url | |
| stargazers { | |
| totalCount | |
| } | |
| updatedAt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <h1>embedded gist</h1> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>some emmet fun</title> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def count_words(s, n): | |
| """Return the n most frequently occuring words in s.""" | |
| wordlist = s.split(" ") | |
| # TODO: Count the number of occurences of each word in s | |
| worddict = {} | |
| for word in wordlist: | |
| if word in worddict: worddict[word] += 1 | |
| else: worddict[word] = 1 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="https://npmcdn.com/@reactivex/[email protected]/dist/global/Rx.js"></script> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import akka.{Done, NotUsed} | |
| import akka.actor.ActorSystem | |
| import akka.stream.ActorMaterializer | |
| import akka.stream.scaladsl._ | |
| /** | |
| * inspired by https://github.com/akka/akka/blob/master/akka-docs/rst/scala/code/docs/stream/TwitterStreamQuickstartDocSpec.scala | |
| * Created by laszlo on 08/03/16. | |
| */ | |
| object Tweets { |