This file contains 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
PUZ 000 dt=0.02 | |
8410 2.00000e-02 0 0 0.00000e+00 0.00000e+00 0.00000e+00 0.00000e+00 | |
-4.84283e-14 -4.83667e-14 -4.83051e-14 -4.82436e-14 -4.81821e-14 -4.81207e-14 | |
-4.80594e-14 -4.79981e-14 -4.79368e-14 -4.78756e-14 -4.78145e-14 -4.77533e-14 | |
-4.76923e-14 -4.76313e-14 -4.75703e-14 -4.75094e-14 -4.74486e-14 -4.73877e-14 | |
-4.73270e-14 -4.72663e-14 -4.72056e-14 -4.71450e-14 -4.70844e-14 -4.70239e-14 | |
-4.69635e-14 -4.69031e-14 -4.68427e-14 -4.67824e-14 -4.67221e-14 -4.66619e-14 | |
-4.66017e-14 -4.65416e-14 -4.64815e-14 -4.64215e-14 -4.63615e-14 -4.63016e-14 | |
-4.62417e-14 -4.61819e-14 -4.61221e-14 -4.60624e-14 -4.60027e-14 -4.59431e-14 | |
-4.58835e-14 -4.58240e-14 -4.57645e-14 -4.57051e-14 -4.56457e-14 -4.55864e-14 |
This file contains 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 pathlib import Path | |
import numpy as np | |
import pandas as pd | |
from empirical.util import openquake_wrapper_vectorized as openquake | |
from empirical.util import z_model_calculations | |
from empirical.util.classdef import GMM, TectType | |
from matplotlib import pyplot as plt | |
import numexpr as ne | |
from qcore import coordinates |
This file contains 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
(defun treesit-mark-bigger-node () | |
(interactive) | |
(let* ((node (treesit-node-on (region-beginning) (region-end)))) | |
(let ((next-node (treesit-parent-until node (lambda (n) | |
(not (and | |
(= (region-beginning) (treesit-node-start n)) | |
(= (region-end) (treesit-node-end n)))))))) | |
(set-mark (treesit-node-end next-node)) | |
(goto-char (treesit-node-start next-node))))) |
This file contains 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
;; Invoke via M-x doc-view-transient | |
(transient-define-prefix doc-view-transient () | |
"Transient for doc-view mode." | |
[:class transient-columns ;; the class sets how the transient is displayed; we have each category as a column. | |
["Zoom" | |
("+" "Enlarge" doc-view-enlarge :transient t) ;; :transient commands keep the transient prompt open | |
("-" "Shrink" doc-view-shrink :transient t) | |
("w" "Fit window to page" doc-view-fit-window-to-page :transient t) | |
("W" "Fit width to window" doc-view-fit-width-to-window :transient t)] | |
["Navigation" |
This file contains 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
;; -*- mode: Lisp -*- | |
#-quicklisp | |
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" | |
(user-homedir-pathname)))) | |
(when (probe-file quicklisp-init) | |
(load quicklisp-init))) | |
(in-package :stumpwm) | |
(require 'swank) |
This file contains 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
LoadPackage("fining"); | |
e := 3; | |
q := 2 ^ e; | |
aut := 2^((e + 1) / 2); | |
pg := PG(2, q^2); | |
F := GF(q); | |
Ex := GF(q^2); | |
w := Z(q^2); |
This file contains 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 collections import Counter | |
import tensorflow as tf | |
import tensorflow.keras as keras | |
import tensorflow.keras.layers as layers | |
from nltk import word_tokenize | |
class BengioModel(keras.Model): | |
''' Model that replicates the architecture of Bengio et al. ''' |
This file contains 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
module Lib | |
where | |
import Graphics.Gloss | |
density :: Float | |
density = 0.1 | |
spiral :: [Float] -> [(Float, Float)] | |
spiral pts = map f pts |
This file contains 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 enum import Enum, auto | |
class HeadMove(Enum): | |
LEFT = -1 | |
RIGHT = 1 | |
NOTHING = 0 | |
class TuringMachine: |
This file contains 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
program := 0; | |
i := 0; | |
read program; | |
read i; | |
j := i; | |
l := 0; | |
data := 0; | |
while j >= 0 do | |
pow := 1; | |
k := 0; |
NewerOlder