Skip to content

Instantly share code, notes, and snippets.

View brunoalano's full-sized avatar

Bruno Alano brunoalano

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Record timeout="25" transcribe="true" />
</Response>
import { createContext, useEffect, useState, useMemo, useContext } from 'react';
import cookie from 'js-cookie';
import firebase from 'lib/auth/firebase';
import { useDocument } from '@nandorojo/swr-firestore';
import type { UserModel } from 'types/UserModel';
// Create a context that will hold the values that we are going to expose to our components.
// Don't worry about the `null` value. It's gonna be *instantly* overriden by the component below
type UserContextType = {
user: UserModel | null;
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
3;5;1;3;4;4;5;2;5;5;4;5;5;2;5
5;5;5;4;5;4;4;5;4;4;5;5;3;4;5
4;5;5;4;5;3;4.5;5;4.5;5;5;5;4.5;5;4
5;4;4;3;5;3;4;4.5;4;;3;3;5;3;
2.5;;2;5;;4;2.5;;5;5;3;3;4;3;2
3;;4;4;4;3;;3;4;4;4.5;4;4.5;4;
3;3;5;4.5;5;4.5;2;4.5;4;3;4.5;4.5;4;3;4
5;5;5;4;;4;5;4;4;4;;3;5;4;4
4;5;4;5;4;4;5;5;4;4;4;4;2;3.5;5
3;3.5;3;2.5;;;3;3.5;3.5;3;3.5;3;3;4;4

Keybase proof

I hereby claim:

  • I am brunoalano on github.
  • I am brunoalano (https://keybase.io/brunoalano) on keybase.
  • I have a public key ASClXTjju9QlouHT7WzipmJ0P2wzYPlWje24YX-BVQQmmQo

To claim this, I am signing this object:

-tickrate 128 -nojoy -novid -high +mat_queue_mode -1 +exec autoexec.cfg +fps_max 0 +r_dynamic 0 +cl_forcepreload 1

Keybase proof

I hereby claim:

  • I am brunoalano on github.
  • I am brunoalano (https://keybase.io/brunoalano) on keybase.
  • I have a public key ASA6bv_NVq4Fs9qR5PnvCxd7DVGpIrngiRRD3c_bK7NnDgo

To claim this, I am signing this object:

import * as React from 'react';
import { DiagramEngine, AbstractNodeFactory } from 'storm-react-diagrams';
import { BaseNodeModel } from '../models/BaseNodeModel';
import { BaseNodeWidget } from '../widgets/BaseNodeWidget';
export class AbstractActionNodeFactory<T extends BaseNodeModel, U extends BaseNodeWidget> extends AbstractNodeFactory<T> {
constructor(nodeType: string, public nodeModel: (new (...args: any[]) => T), public nodeWidget: (new (...args: any[]) => U)) {
super(nodeType);
@brunoalano
brunoalano / gist:fa56d8c1ce862d601e743456988da8a1
Created January 8, 2019 20:09
Nginx with Pagespeed Options
--prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --user=nginx --group=nginx --with-select_module --with-poll_module --with-threads --with-file-aio --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module=dynamic --with-ipv6 --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module=dynamic --with-perl_modules_path=/usr/share/perl/5.22.1 --with-perl=/usr/bin/perl --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/cache/nginx/client_temp --http-prox
import numpy as np
predictions = [
('company_a:user1', 'model_a', 0.5),
('company_a:user1', 'model_b', 0.6),
('company_a:user1', 'model_c', 0.3),
('company_a:user2', 'model_a', 0.33),
('company_a:user2', 'model_b', 0.27),
('company_a:user2', 'model_c', 0.75),
('company_b:user1', 'model_a', 0.36),

Mac OS X Build Instructions and Notes

The commands in this guide should be executed in a Terminal application. The built-in one is located in /Applications/Utilities/Terminal.app.

Preparation

Install the OS X command line tools:

xcode-select --install