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
SELECT relname, seq_scan-idx_scan AS too_much_seq, case when seq_scan-idx_scan>0 THEN 'Missing Index?' ELSE 'OK' END, pg_relation_size(relname::regclass) AS rel_size, seq_scan, idx_scan | |
FROM pg_stat_all_tables | |
WHERE schemaname='public' AND pg_relation_size(relname::regclass)>80000 ORDER BY too_much_seq DESC; |
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
Interview with German Ventilator Manufacturer | |
"Absolutely Mission Impossible" | |
Drägerwerk is a world leader in the production of ventilators. In an interview, company head Stefan Dräger, 57, discusses the challenges of keeping up with current demand as the corona crisis accelerates. | |
Interview Conducted by Lukas Eberle und Martin U. Müller | |
27.03.2020, 18:30 Uhr | |
Workers at the Dräger factory in Lübeck: "Last weekend, the king of the Netherlands called." | |
Workers at the Dräger factory in Lübeck: "Last weekend, the king of the Netherlands called." LUTZ ROEßLER | |
DER SPIEGEL: Mr. Dräger, your company is currently receiving a record number of orders and shares in your company are in greater demand than ever. Are you able to derive any satisfaction because of it? | |
Dräger: The situation is humbling, but it does make me proud. We are aware of our responsibility. |
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
class CustomDialog(QDialog): | |
def __init__(self, *args, **kwargs): | |
super(CustomDialog, self).__init__(*args, **kwargs) | |
self.setWindowTitle("HELLO!") | |
QBtn = QDialogButtonBox.Ok | QDialogButtonBox.Cancel | |
self.buttonBox = QDialogButtonBox(QBtn) |
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 os | |
import sys | |
import boto3 | |
from PySide2.QtCore import QRunnable, QObject, QThreadPool, Signal, Slot | |
from PySide2.QtWidgets import QMainWindow, QVBoxLayout, QProgressBar, QPushButton, QWidget, QApplication | |
class TestWindow(QMainWindow): |
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
require 'authentication' | |
class MyApp < Roda | |
include Authentication | |
plugin :json | |
route do |r| | |
r.on('docs') { r.run Docs } |
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
#contents of sample.rb | |
cat sample.rb | |
require './before' | |
puts "Hello World!" | |
#contents of before.rb | |
cat before.rb | |
puts "Before..." | |
#running: |
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
[] ~/projects/jruby $ jruby.bash --environment --dev | |
JRuby Environment | |
================= | |
JRuby executable: | |
/Users/headius/projects/jruby/bin/jruby.bash | |
JRuby command line options: | |
--environment --dev | |
Environment: |
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
require 'sinatra' | |
require 'action_mailer' | |
class Mailer < ActionMailer::Base | |
def contact | |
mail( | |
:to => "[email protected]", | |
:from => "[email protected]", | |
:subject => "Test") do |format| | |
format.text |
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
require 'java' | |
java_import java.lang.System | |
Frame = javax.swing.JFrame | |
Button = javax.swing.JButton | |
Label = javax.swing.JLabel | |
frame = Frame.new("what") | |
button = Button.new("a button") | |
label = Label.new |
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
inking... | |
To force a rebuild of up-to-date targets, run again with --force. | |
Running ./bin/dlangide | |
2016-06-24 21:08:41.777 I Log level changed to Trace | |
2016-06-24 21:08:41.780 I Logger is initialized | |
2016-06-24 21:08:41.781 V DerelictFT: Loading FreeType library | |
2016-06-24 21:08:41.781 V DerelictFT: Missing symbols callback is registered | |
2016-06-24 21:08:41.783 V DerelictFT: Loaded | |
2016-06-24 21:08:41.783 V Initializing FreeType library | |
2016-06-24 21:08:41.799 W Cannot load FontConfig shared library |