Skip to content

Instantly share code, notes, and snippets.

X = np.random.rand(20,1)
X = np.asarray(X)
y = np.random.rand(20,1)
y = np.asarray(y)
w = np.random.rand(20,1) # initial random values for w
w = np.asarray(w)
b = np.random.rand(20,1) # initial random values for b
b = np.asarray(b)
@mqzry
mqzry / SnapLines.js
Created May 11, 2018 14:48
Code to add a snaplines for configuration and printarea in the sketchomat
addSnapLine: function (x, y, rot, owner) {
var newLine = new Line(x, y, rot, defaultLineLength);
var alreadyAdded = false;
for (var i = 0; i < this.$snapLines.length; i++) {
var owners = this.$snapLines[i].owners;
var line = this.$snapLines[i].line;
if (line.equals(newLine)) {
if (owners.indexOf(owner) === -1) {
owners.push(owner);
}
#!/usr/bin/env python3
# Check connection to the RabbitMQ server
# Source: https://blog.sleeplessbeastie.eu/2017/07/10/how-to-check-connection-to-the-rabbitmq-message-broker/
# import parser for command-line options
import argparse
# import a pure-Python implementation of the AMQP 0-9-1
import pika
# define and parse command-line options
#!/bin/bash
# Author: slowpoke <proxypoke at lavabit dot com>
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
#
# A pre-commit hook for go projects. In addition to the standard

Keybase proof

I hereby claim:

  • I am mqzry on github.
  • I am sadar (https://keybase.io/sadar) on keybase.
  • I have a public key whose fingerprint is 000E 231B 6070 8428 1001 82A8 B8BF 57C2 6BCD 330C

To claim this, I am signing this object: