Skip to content

Instantly share code, notes, and snippets.

import json
import clang.cindex
import collections
import os
import regex as re
import copy
filename = 'compile_commands.json'
with open(filename,'r') as fid:
compile_db = json.load(fid)
token = token_top
#='/home/user/path/to/cert/certificate_file.crt'
import gitlab
import numpy as np
import regex
import datetime
gl = gitlab.Gitlab('https://personal.gitlab.com/', private_token=token,ssl_verify=False)
gl_epochs = gitlab.Gitlab('https://personal.gitlab.com/', private_token=token_top,ssl_verify=False)
#include "openamp/remoteproc_loader.h"
#include <openamp/remoteproc.h>
#include <openamp/elf_loader.h>
#include <metal/alloc.h>
#include <metal/utilities.h> /* metal_container_of */
int image_store_open(void *store, const char *path, const void **img_data);
void image_store_close(void *store);
int image_store_load(void *store, size_t offset, size_t size,
const void **data,
@thesamprice
thesamprice / RemoveDuplicates.scpt
Created October 9, 2019 15:12
Removes duplicate emails from MS outlook on mac.
-- Remove Duplicate Message v2.1
-- An Applescript based on code by Barry Wainwright, 15th October 2010
-- Detects and deletes duplicate messages within a selected folder
-- works on Message-ID header - uniquely identifying duplicates
-- Version History
-- v1.0 - 2002-03-18: First Release (For Microsoft Entourage)
-- v2.0 - 2010-10-07: modified to work with Microsoft Outlook for Mac
-- v2.1 - 2010-10-15: added final dialog to summarise messages removed
-- v2.2 - 2019-10-05: Added progress bar. (Sam Price)
@thesamprice
thesamprice / console_ipython.py
Created April 9, 2013 05:02
If I import matplot and plot a frame with an IPython console window open IPython goes crazy and seg faults my app. I tried configuring my matplotlibrc to use Qt4 as the backend but no joy :(. Not sure how to chase down why IPython is crashing. Im using the 1.0-dev build. and 1.2.1 of matplotlib Any Help?
import os
from IPython.frontend.qt.console.rich_ipython_widget import RichIPythonWidget
from IPython.frontend.qt.console.ipython_widget import IPythonWidget
from IPython.frontend.qt.kernelmanager import QtKernelManager
from IPython.frontend.qt.inprocess_kernelmanager import QtInProcessKernelManager
from IPython.kernel.zmq.ipkernel import Kernel
from IPython.kernel.inprocess.ipkernel import InProcessKernel