Skip to content

Instantly share code, notes, and snippets.

from google.colab import drive
drive.mount('/content/gdrive',force_remount=True)
%cd /content/gdrive/My Drive/Seismic Processing
import numpy as np
from shutil import copyfile
from matplotlib import pyplot as plt
dt=0.01
pi=3.1415926
freq=1
omega=2*pi*freq
@letroot
letroot / brand-schema.prisma
Created January 24, 2024 04:19
Proposed Schema for Brands, Meals and Locations
model Brand {
id Int @id @default(autoincrement())
name String
locations Location[]
meals Meal[]
}
model Location {
id Int @id @default(autoincrement())
name String
first_number = int(input("Enter the first number: "))
second_number = int(input("Enter the second number: "))
def test_divisibility(first, second):
try:
if (first % second) == 0:
print("Yes")
return
print("No")
while (True):
print ("dear Ganymede")
# what do you expect to happen here?
@letroot
letroot / introrx.md
Created July 24, 2022 20:41 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
import sys
script, input_encoding, error = sys.argv
languages = open("languages.txt", encoding="utf-8")
def main (language_file, encoding, err):
line = language_file.readline()
# line -> 'Afrikaans'
# if `line` is not an empty string, then run lines 11...
from sys import argv
# import on one argument
script, input_file = argv
# First Function
def print_all (f):
print (f.read())
# 2nd Function
def rewind(f):
<style lang="sass">
// Basic VueAgile styles
.agile
margin-top: 20px
&__actions
margin-top: 20px
&__nav-button
background: transparent
border: none
color: #ccc
<template>
<div class="dm">
<DeadNav />
<div class="tracking-tight pt-3 pb-4 sm:max-w-screen-sm sm:mx-auto">
<h2
class="
px-4
mt-20
font-semibold
text-lg text-center
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script', 'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1080904539096368');
fbq('track', 'PageView');