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
[Unit] | |
Description=Starts i3lock at suspend time | |
Before=sleep.target | |
[Service] | |
User=%I | |
Type=forking | |
Environment=DISPLAY=:0 | |
ExecStart=/usr/bin/i3lock -c 3f3f3f |
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
#!/usr/bin/env bash | |
# requires the google-cloud-sdk | |
# to activate key | |
# google-cloud-sdk/bin/gcloud auth activate-service-account --key-file foobar.json | |
# be sure to run the above as root user as well for cron use | |
# to fix timeskew |
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
// ==UserScript== | |
// @name Upwork MoreResults | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Load more job results when bottom of page is reached | |
// @author aconz2 | |
// @match https://www.upwork.com/ab/find-work/* | |
// @require http://code.jquery.com/jquery-latest.js | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Upwork AutoRedirect | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Automatically redirect you to the external page when clicking on an external link from an Upwork listing. | |
// @author aconz2 | |
// @match https://www.upwork.com/leaving?* | |
// @grant none | |
// ==/UserScript== |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
using CUDA on GPU 0... | |
Make sure that your saved checkpoint was also trained with GPU. If it was trained with CPU use -gpuid -1 for sampling as well | |
creating an lstm... | |
missing seed text, using uniform probability over first character | |
-------------------------- | |
�y job is producing how people read out there. Our platform builds a core technology startup is established by hardest lifestal search and data structures and allowing us to be family on all shapes and shape some of the developers, including MacBook profiles, mongotiout and test achieved as the time to distribute the code. If you have any questions about all of our jobs page for more information to about us really among the latter to contribute to person because it's a very larger hands to do the intersection that lesss more varied or email me (http://blog.vittualsnownup.org/wiki/) – Full-Time, , Canada, Remote, Perl, POS, (or JavaScript (UI/UX)TEDY is a number of hiring software developers who are excited about technical hires to be quickly as th |
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
type exp = | |
| Int of int | |
| Succ of exp | |
| Plus of exp * exp | |
(* realistically we would want to specify depth and/or the bias of | |
choosing a certain expression *) | |
let rec gen_exp () : exp = | |
match Random.int 3 with | |
| 0 -> Int (Random.int 42) |
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
type exp = | |
| Int of int | |
| Succ of exp | |
(* This is what we want to write: *) | |
(* let rec step (e : exp) : exp option = *) | |
(* match e with *) | |
(* | Int _ -> None *) | |
(* | Succ (Int i) -> Some (Int (i + 1)) *) | |
(* | Succ e -> Some (Succ (step e)) *) |
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
#!/usr/bin/env python3 | |
from matplotlib import pyplot as plt | |
import numpy as np | |
from mpl_toolkits.mplot3d import Axes3D | |
normed = lambda v: v / np.linalg.norm(v) | |
# orthogonal vector in 2 space | |
orthogonal = lambda v: np.cross(v, [0, 0, 1])[:2] | |
pltvec = lambda v, **kwargs: plt.plot([0, v[0]], [0, v[1]], **kwargs) |
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
from matplotlib import pyplot as plt | |
from mpl_toolkits.mplot3d import Axes3D | |
import numpy as np | |
fig = plt.figure() | |
ax = fig.add_subplot(111, projection='3d') | |
# original data | |
# not linearly separable in 2D | |
x = np.array([[1, 1], [-1, -1], [-1, 1], [1, -1]]) |