Skip to content

Instantly share code, notes, and snippets.

View laszlokiraly's full-sized avatar

László Király laszlokiraly

View GitHub Profile
@laszlokiraly
laszlokiraly / index.js
Last active September 19, 2020 12:44
convert har to postman collection
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) {
@laszlokiraly
laszlokiraly / repositoryForksWithMostStars.graphql
Last active July 4, 2020 07:25
List a given repository's forks, ordered by their number of stars via https://developer.github.com/v4/explorer/
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
@laszlokiraly
laszlokiraly / Tensorflow_Build_GPU.md
Last active November 15, 2017 02:33 — forked from smitshilu/Tensorflow_Build_GPU.md
Tensorflow 1.4 Mac OS High Sierra 10.13 GPU Support

Tensorflow

System information

  • 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h1>embedded gist</h1>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>some emmet fun</title>
</head>
<body>
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
@laszlokiraly
laszlokiraly / index.html
Last active April 9, 2016 11:35 — forked from anonymous/index.html
Observable/Observer Error Handling JS Bin// source https://jsbin.com/kujobeciqu
<!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>
@laszlokiraly
laszlokiraly / Tweets.scala
Created March 12, 2016 02:03
Akka Streams Introduction Examples
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 {