Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<DeviceInfo device="PA768" scannerVendor="Honeywell" scannerModel="Imager N6703 engine"/>
<UssSettings>
<gs1_128>1</gs1_128>
<preamble></preamble>
<codabar_max_length>60</codabar_max_length>
<codabar_min_length>4</codabar_min_length>
<dot_code>1</dot_code>
<hibc_lic>1</hibc_lic>
<intentcategory></intentcategory>
@ov3rk1ll
ov3rk1ll / citycaching.js
Last active March 15, 2018 08:28
Tool zum Lesen des Salzburger CityCaching JSON Formats
// node citycaching.js file [start uuid]
// Make sure lodash is installed!
var fs = require('fs');
var _ = require('lodash');
String.prototype.replaceAll = function(search, replacement) {
var target = this;
return target.replace(new RegExp(search, 'g'), replacement);
};
@ov3rk1ll
ov3rk1ll / designer.html
Created January 27, 2015 15:25
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-submenu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-icon-button/paper-icon-button.html">
<polymer-element name="my-element">
@ov3rk1ll
ov3rk1ll / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
package com.handheldgroup.fullfocus;
import android.app.Activity;
import android.app.ActivityManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import java.lang.reflect.Method;
@ov3rk1ll
ov3rk1ll / gist:d3e5cec797595dc8ec5b
Created July 8, 2014 14:43
WM6 GetBatteryLifePercent
[DllImport("coredll.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.U4)]
public static extern int GetSystemPowerStatusEx2(SYSTEM_POWER_STATUS_EX2 pSystemPowerStatusEx2, [MarshalAs(UnmanagedType.U4), In] int dwLen, [MarshalAs(UnmanagedType.Bool), In] bool fUpdate);
// Percentage of full battery charge remaining. This member can be a value in the range 0 to 100, or BATTERY_PERCENTAGE_UNKNOWN if the status is unknown.
private byte GetBatteryLifePercent()
{
SYSTEM_POWER_STATUS_EX2 SystemPowerStatusEx2 = new SYSTEM_POWER_STATUS_EX2();
if (GetSystemPowerStatusEx2(SystemPowerStatusEx2, Marshal.SizeOf(SystemPowerStatusEx2), true) > 0) {
return SystemPowerStatusEx2.BatteryLifePercent;