This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"html/template" | |
"github.com/gorilla/sessions" |
This file contains hidden or 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
resolver = Prismic.link_resolver('master'){ |doc_link| "http:#localhost/#{doc_link.id}" } | |
serializer = Prismic.html_serializer do |element, html| | |
if element.is_a?(Prismic::Fragments::StructuredText::Block::Image) | |
# Don't wrap images in a <p> tag | |
%(<img src="#{element.url}" alt="#{element.alt}" width="#{element.width}" height="#{element.height}" />) | |
else | |
nil | |
end | |
end | |
doc = response.results[0] |
This file contains hidden or 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
gem 'turbolinks' | |
gem 'jquery-turbolinks' |
This file contains hidden or 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
source 'https://rubygems.org' | |
gem "graphql", github: "rmosolgo/graphql-ruby", branch: "subscriptions" | |
gem "sinatra" | |
gem "thin" |
This file contains hidden or 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 numpy as np | |
import matplotlib.pyplot as plt | |
from matplotlib.widgets import Button | |
from PIL import Image | |
import sys | |
import os | |
from PySide6.QtWidgets import QApplication | |
# Load the grayscale floating point TIFF image from command line | |
if len(sys.argv) != 2: |
OlderNewer