Skip to content

Instantly share code, notes, and snippets.

View victor-torres's full-sized avatar
🏠
Working from home

Victor Torres victor-torres

🏠
Working from home
View GitHub Profile
@kinverarity1
kinverarity1 / Read example file.ipynb
Last active September 24, 2020 09:49
@shakasaki hack-y example of getting data out of a LAS 3 file pending proper LAS 3 support in lasio
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
git reflog | grep 'checkout' | head -n 1 | awk '{print "git checkout " $6}' | sh -
[Desktop Entry]
Type=Application
Terminal=false
Name=Touchpad Fix
Exec=/usr/bin/synclient MinSpeed=1.8 MaxSpeed=4 AccelFactor=0.04 ClickPad=1 VertHysteresis=0.1 HorizHysteresis=0.1 HorizTwoFingerScroll=1 VertScrollDelta=-30 HorizScrollDelta=-30
Icon=libinput-gestures
Comment=synaptic touchpad fix
Categories=GNOME;GTK;System;
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@doobeh
doobeh / example.html
Last active June 8, 2023 18:09
Checkbox WTForms Example (in Flask)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<form method="post">
{{ form.hidden_tag() }}
{{ form.example }}