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 QtQuick 2.0 | |
import QtQuick.Controls 2.12 | |
import QtQuick.Controls 1.4 | |
import QtQuick.Layouts 1.12 | |
import "qrc:/components" | |
import QtQuick.Controls.Material 2.12 | |
import QtQml.Models 2.15 | |
import QtQuick.Controls.Styles 1.4 |
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
def pretty_dir(obj): | |
start = [obj.__class__.__name__ + ":"] | |
funcs = [] | |
for a in dir(obj): | |
if a in [ '__weakref__' ]: | |
aa = "?" | |
else: | |
aa = getattr(obj, a) |
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
#include <execinfo.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
/* Obtain a backtrace and print it to stdout. */ | |
static void | |
print_trace (void) | |
{ | |
void *array[10]; | |
size_t size; |
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
#!/usr/bin/env python | |
# gist stolen from amitsaha / pi_mp.py | |
# https://gist.github.com/amitsaha/2036026 | |
import sys | |
import random | |
import multiprocessing | |
from multiprocessing import Pool |