Skip to content

Instantly share code, notes, and snippets.

gdb rust_blink
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
gdb rust_blink
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
@Arnold1
Arnold1 / main.rs
Created June 2, 2015 19:34
source for disassemble6
#![feature(core)]
// from crates.io
extern crate mmap;
extern crate libc;
mod fpga_awg;
use std::ptr;
use std::fs;
#include <errno.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
void /*__attribute__((optimize("O0")))*/ copyMem(uint32_t *g_awg_cha_mem, const uint32_t *data) {
for (int i = 0; i < n; i++) {
g_awg_cha_mem[i] = data[i];
This file has been truncated, but you can view the full file.
aa
aah
aahed
aahing
aahs
aal
aalii
aaliis
aals
aardvark
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Arnold1
Arnold1 / main.py
Created May 11, 2016 17:23
plot frequency of points within each cell
import json
import pymssql
import matplotlib.path as mplPath
import matplotlib.pyplot as plt
import numpy as np
import time
import random
from shapely.geometry import Polygon, Point
def read_geo_json():
import json
import matplotlib.path as mplPath
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import time
import random
from shapely.geometry import Polygon, Point
from scipy.spatial import cKDTree
import json
import matplotlib.path as mplPath
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
import time
import random
from shapely.geometry import Polygon, Point
from scipy.spatial import cKDTree
import sys
import matplotlib
matplotlib.use("Qt5Agg")
import numpy as np
from numpy import arange, sin, pi
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure
from PyQt5.QtWidgets import QWidget, QMainWindow, QApplication, QSizePolicy, QVBoxLayout, QPushButton
from PyQt5.QtCore import *