Skip to content

Instantly share code, notes, and snippets.

View dragly's full-sized avatar

Svenn-Arne Dragly dragly

View GitHub Profile
@dragly
dragly / commands.sh
Last active September 16, 2017 09:46
Working on multiple versions of Qt from git without cloning every version
# This script assumes that you want to work on qt3d, qtquickcontrols (1 and 2), datavis3d and qtcharts.
# Replace the modules below if you need others.
# Clone dev version
mkdir dev
cd dev # ./dev
git clone git://code.qt.io/qt/qt5.git
cd qt5 # ./dev/qt5
git checkout dev
perl init-repository --codereview-username yourusername -branch dev --module-subset=default,qtcharts,qtdatavis3d,-qtwebkit,-qtwebkit-examples,-qtwebengine,-qtwebview
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dragly
dragly / keybase.md
Created June 15, 2017 14:41
keybase.md

Keybase proof

I hereby claim:

  • I am dragly on github.
  • I am dragly (https://keybase.io/dragly) on keybase.
  • I have a public key whose fingerprint is 4B9E 7F1F AB54 DCB1 62E1 69B4 3C98 CB5A 5E85 0465

To claim this, I am signing this object:

@dragly
dragly / build_qt5_from_git.sh
Last active February 23, 2017 10:22
Build Qt5 from Git
git clone git://code.qt.io/qt/qt5.git
cd qt5
git checkout 5.9
perl init-repository --codereview-username dragly --module-subset=default,-qtwebkit,-qtwebkit-examples,-qtwebengine,-qtwebview
./configure -developer-build -opensource -nomake tests -nomake examples -confirm-license
make module-qt3d module-qtquickcontrols module-qtquickcontrols2 module-qtdatavis3d module-qtcharts -j4
from mpl_toolkits.axes_grid.inset_locator import zoomed_inset_axes, inset_axes, mark_inset
r12s = linspace(0, 6, 1000)
energies = 0.01*sin(10*r12s) - 1.0
r12s = array(r12s)
energies = array(energies)
ax = axes()
plot(r12s, energies, "-", label="UHF")
xlabel(r"$R$")
ylabel(r"$E$")
from pylab import *
from mpl_toolkits.axes_grid.inset_locator import zoomed_inset_axes, inset_axes, mark_inset
r12s = linspace(0, 6, 1000)
energies = 0.01*sin(10*r12s) - 1.0
r12s = array(r12s)
energies = array(energies)
ax = axes()
plot(r12s, energies, "-", label="UHF")
xlabel(r"$R$")
@dragly
dragly / qmc-force
Created September 18, 2013 12:39
QMC Force notebook
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@dragly
dragly / test.ipynb
Created September 19, 2012 08:18
Test
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.