-
Enable PPA
sudo apt update sudo apt install software-properties-common
-
Install apt-fast
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 transformers import BertForQuestionAnswering | |
import torch | |
bert_name = "bert-large-uncased-whole-word-masking-finetuned-squad" | |
model = BertForQuestionAnswering.from_pretrained(bert_name, torchscript=True) | |
model.eval() | |
inputs = [torch.ones(1, 2, dtype=torch.int64), | |
torch.ones(1, 2, dtype=torch.int64), |
Exhaustive list of SPDX (Software Package Data Exchange) licenses: https://spdx.org/licenses/
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
# -*- coding: utf-8 -*- | |
''' | |
Steganogrphy in Python | |
Copyright 2013 Josiah Carlson | |
Released under the GNU LGPL v2.1 license | |
What, how, why, etc, are discussed: | |
http://www.dr-josiah.com/2013/05/steganography-in-python.html |
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
function addSlashes( str ) { | |
return (str+'').replace(/([\\"'])/g, "\\$1").replace(/\0/g, "\\0"); | |
} | |
var spawn = require('child_process').spawn; | |
var growl = require('growl'); | |
var coffee = './node_modules/.bin/coffee'; | |
var coffee_tasks = []; | |
var handlebars_tasks = []; | |
coffee_tasks.push(spawn(coffee, ['-cwo', 'static/js', 'static/coffee'])); | |
coffee_tasks.push(spawn(coffee, ['-cwo', 'test', 'test/src'])); |
This is an example of how to use the d3 framework without Scalable Vector Graphics. The bubbles are CSS styled div
elements.
Try it on bl.ocks.org
It is also an example of how to write your JavaScript using CoffeeScript. The following CoffeeScript was compiled into JavaScript, and results in the graphic above.
colors = new d3.scale.category10()
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
dataset = [] | |
w = 500 | |
h = 400 | |
padding = 30 | |
dataset.push [ Math.random() * w, Math.random() * h ] for [0..50] | |
svg = d3.select("body") | |
.append("svg") | |
.attr("width", w) |
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
function getSafe (self, uuid) { | |
if (typeof self === 'object' || typeof self === 'function') var safe = {} | |
if (Array.isArray(self)) var safe = [] | |
var recurse = [] | |
Object.defineProperty(self, uuid, {}) | |
var attrs = Object.keys(self).filter(function (i) { | |
if (i === uuid) return false |
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
.idea | |
Cakefile.js | |
tmp/ | |