Skip to content

Instantly share code, notes, and snippets.

View tuix's full-sized avatar

Mohsen Nosratinia tuix

  • Viking Analytics AB
  • Stockholm, Sweden
View GitHub Profile
@tuix
tuix / takeout-discovery.json
Created December 7, 2020 18:13 — forked from stewartmcgown/takeout-discovery.json
Google Takeout API
{
"title": "Takeout API",
"discoveryVersion": "v1",
"ownerName": "Google",
"version_module": true,
"resources": {
"exports": {
"methods": {
"get": {
"flatPath": "v2/{service}/exports/{exportId}",

If you add a changex0 method to the superclass that has (SetAccess=private)

classdef Rectangle
    properties (SetAccess=private)
        width
        height
        x0 = 0
        y0 = 0
        angle = 0
 end
d = [0 1 1 1 1;
1 1 0 0 0;
1 1 1 0 1;
0 0 0 0 0;
1 1 0 1 1];
tic
for k=1:1e4,
nrows = size(d,1);
d_neg_cell = num2cell(~d,[nrows 1]);
L = randn(20,3);
l1_max=20; l1_min=0.5;
l2_max=20; l2_min=0.5;
mu_max=20; mu_min=0.5;
tic
for kk=1:1e5
l=L;
for k=1:20
if l(k,1)>l1_max