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
dd bs=3200 count=1 conv=ascii if=data.segy | sed 's/.\{80\}/&\n/g' | sed 's/^.\{3\}/& /g' > header.txt |
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
import re | |
def markdown_to_bbcode(s): | |
links = {} | |
codes = [] | |
def gather_link(m): | |
links[m.group(1)]=m.group(2); return "" | |
def replace_link(m): | |
return "[url=%s]%s[/url]" % (links[m.group(2) or m.group(1)], m.group(1)) | |
def gather_code(m): |
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
#! /bin/bash | |
# | |
# Define environment | |
Machine='[Machine Name]' | |
User='[User Name]' | |
PromaxData='/Promax/ProMAX/data/[Project Name]/[Line Name]' | |
OutData="[Output Path]" | |
# Read number Code of flow. I usually introduce initial numbers for my workflows. |
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
=ImportXML("http://api.openweathermap.org/data/2.5/forecast/daily?q=Hamburg,de&mode=xml&units=metric&cnt=2";"//time[last()]/temperature/@day") |
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
# MODIFIED FROM PERISHABLE PRESS ULTIMATE REFERRER BLACKLIST | |
# https://perishablepress.com/4g-ultimate-referrer-blacklist/ | |
# This is a modified referrer blacklist from http://brassblogs.com/blog/htaccess-and-spam by JesperDramsch | |
# This blacklist is ready to use in your site's root htaccess file | |
# Edit the first two lines with your specific domain information | |
# Check http://brassblogs.com/blog/htaccess-and-spam for updates and include my additions | |
# Analytics Spam Blocker - Start | |
<IfModule mod_rewrite.c> |
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
import telegram_send | |
telegram_send.configure('~/.telegram/.conf') | |
class TelegramCallback(keras.callbacks.Callback): | |
def on_train_begin(self, logs={}): | |
telegram_send.send(["Starting Training"]) | |
def on_train_end(self, logs={}): | |
telegram_send.send(["Training Finished"]) | |
def on_batch_end(self, batch, logs={}): | |
telegram_send.send(["Loss: {:.8f} | Metrics: {:.5f}".format(logs.get('loss'),logs.get('acc'))]) |
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
{ | |
"datasets": [ | |
{ | |
"version": "v1", | |
"data": { | |
"id": "vvzpce4kr", | |
"label": "Top Expat Destinations.csv", | |
"color": [ | |
143, | |
47, |
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
// ==UserScript== | |
// @name Make Medium Readable Userscript | |
// @namespace http://make.medium.readable.again | |
// @version 0.1 | |
// @description https://github.com/thebaer/MMRA | |
// @author luke3butler (Credits to Matt Baer) | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name News Feed Eradicator for LinkedIn | |
// @namespace http://miglen.com/ | |
// @version 0.5 | |
// @description News Feed Eradicator for LinkedIn | |
// @author Miglen Evlogiev (hi@miglen.com) | |
// @match https://www.linkedin.com/feed/ | |
// @grant none | |
// @downloadURL https://gist.github.com/JesperDramsch/839365c85133927f694bf5113c77a2f1/raw/news-feeds-eradicator-linkedin.user.js | |
// @updateURL https://gist.github.com/JesperDramsch/839365c85133927f694bf5113c77a2f1/raw/news-feeds-eradicator-linkedin.user.js |
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
function Intialize() { | |
return; | |
} | |
function Install() { | |
ScriptApp.newTrigger("updateFilter") | |
.timeBased().everyMinutes(10).create(); | |
} |
OlderNewer