Based on this post: https://qxf2.com/blog/saving-cprofile-stats-to-a-csv-file/
if __name__ == "__main__":
pr = cProfile.Profile()
pr.enable()
/* eslint-disable no-console */ | |
import React, { createContext, useContext, useMemo, useReducer } from 'react'; | |
import ReactDOM from 'react-dom'; | |
// Example of a React app with complex state. | |
// Use separate context to avoid unnecessary renders. | |
// ## ContextProvider | |
const FooContext = createContext(); |
#!/usr/bin/python3 | |
header="DEC HEX CHR" | |
spacer=" " * 5 | |
def row(i): | |
return f"{i:3} {i:02x} {chr(i)} " | |
if __name__ == "__main__": | |
print(spacer.join((header for _ in range(6)))) |
Based on this post: https://qxf2.com/blog/saving-cprofile-stats-to-a-csv-file/
if __name__ == "__main__":
pr = cProfile.Profile()
pr.enable()
I'm using the target arm-linux-musleabihf
for ARM v6 (Raspberry Zero is v6) with musl and hard float.
Following instructions from Rust (and C) Cross Compilation for the Raspberry Pi.
Create an output directory:
const tabris = require('tabris'); | |
/** | |
* Tabris 1.x compatible CollectionView | |
* Does not include compatibility for events | |
*/ | |
class CollectionView_1 extends tabris.CollectionView { | |
constructor(properties) { | |
super(properties); |
const tabris = require('tabris'); | |
/** | |
* Tabris 1.x compatible Picker | |
* Does not include compatibility for events | |
*/ | |
class Picker_1 extends tabris.Picker { | |
constructor(properties) { | |
super(Object.assign({ |
/******************************************************************************* | |
* Copyright (c) 2014 EclipseSource. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* Ralf Sternberg - initial implementation and API | |
******************************************************************************/ |
/******************************************************************************* | |
* Copyright (c) 2013 EclipseSource. | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* Ralf Sternberg - initial API and implementation | |
******************************************************************************/ |
#!/bin/bash | |
# | |
# Tool to turn eclipse directories into p2 repositories | |
USAGE="Usage: | |
`basename "$0"` <repo-dir> [options] | |
Options: | |
--name <repo name> | |
the repository name | |
--eclipse <eclipse install dir> |
#!/bin/bash | |
mode= | |
window= | |
usage() { | |
echo "Usage: $0 [on|off|toggle] [window]" | |
echo " default is to toggle fullscreen mode" | |
echo " window is a string contained in the window's title" | |
exit |