Skip to content

Instantly share code, notes, and snippets.

View Tsangares's full-sized avatar
🎩
We R

William Wyatt Tsangares

🎩
We R
View GitHub Profile
server {
listen 80;
server_name lucashenry.xyz;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
@Tsangares
Tsangares / instructions.md
Created January 31, 2019 21:27
Summary on how to manage a pip repo

pip repos are located online at https://pypi.org/

You need a setup.py that looks like this:

import setuptools                                                                                                                                                                                                                                                                                                                                 
setuptools.setup(                                                                                                                                                        
 name="contraption",                                                                                                                                                  
 version="0.0.1",                                                                                                                                                     

author="Joe Je",

@Tsangares
Tsangares / installing_root.md
Last active February 1, 2019 22:16
Installing ROOT

Windows 10

Step 1: X-Window manager

Download and install XMing: XMing

Step 2: Enabling Ubuntu on Windows

Open powershell with admin priveldges:

  • Hit windows button and search for power shell
  • Right click icon and hit run as admin
@Tsangares
Tsangares / Asgn1.md
Last active February 5, 2019 20:55
Programming Assignent For Phys 9A

Hi all,

The first thing I would like to do is use the library matplotlib to plot the normal distrubution with μ = 0 and σ = 1.

To import matplotlib you use the statement:

import matplotlib.pyplot as plt

Now you can plot make plots using plt.plot() like plt.plot([0,1,2,3],[0,1,2,3]), and to show them use plt.show() (it might be different on juipiter).

@Tsangares
Tsangares / intro.md
Last active February 15, 2019 22:22
Phys 9a LGAD: Parsing XML

Here is the input xml file we will be manipulating:

You can do all the anlysis in your jupyter notebook as long as it has the pip packages pandas,matplotlib,scipi,xlrd.

Take the excel file and put it in your jupyter notebook, or in your working directory.

Import panda using import pandas as pd, then use the following example to import the excel file:

@Tsangares
Tsangares / phys_9_LGAD_introduction.md
Last active February 28, 2019 19:51
Phys9A LGAD Analysis Root Tutorial

uhh

# Test
this is my explaination
@Tsangares
Tsangares / IOTA_Workshop.md
Last active November 26, 2020 14:48
IOTA Workshop Whitepaper

IOTA Workshop

Description

The IOTA Workshop is a craft-production factorty run by a decentralized autonomous organization, for primarily humans to use. While reading futher, please think of this as a thought experiment rather than a business proposal. Inside the workshop, are the tools and instruments that people need to produce goods or commodities. Users of the workshop pay an amount dependent on the wear and tear of the tools they use, along with upkeep costs. For security, users also need to put down a form of refundable collateral. The goal of the IOTA Workshop is to offer specialized industrial tools at higly commpetative and reasonable prices. It is the equivalent of a rental tool business but is distinctive because it operates autonomously at lower costs and is fully transparent. This workshop would be self-sustaining, cheap to use, and highly accessible.

The Problem Being Solved

Normally, a business or a capitalist would come in possessi

@Tsangares
Tsangares / Features.txt
Last active December 20, 2022 07:45
List of NP Plugin Features (Stoned Aped Tools)a
Features:
- Ledger -> Pay Debts owed
- Pay for specific tech
- Auto send all tech
- Pay for all tech
- TODO: Incorporate current debt to pay for all tech
- Research button
- Chat embedded features:
-> Api key merge using [[api:RESNITH]]
-> Image embed using imagur and imbb [[https://i.imgur.com/Nv1h6pm.jpeg or [[https://i.ibb.co/dpFhnc7/Screenshot-from-2022-12-19-13-48-45.png] But not [[https://ibb.co/wQVvDLY]] at least for now. This makes image show up in the chat.
@Tsangares
Tsangares / qr_solver.py
Last active March 5, 2023 03:08
QR Solver
import scipy
import numpy as np
#Ref: https://inst.eecs.berkeley.edu/~ee127/sp21/livebook/l_lineqs_solving.html
def qr_solve(A,y,silent=False):
A = np.array(A)
y = np.array(y)
m,n = A.shape
Q,R,P= scipy.linalg.qr(A,pivoting=True)