Skip to content

Instantly share code, notes, and snippets.

View planetexpress69's full-sized avatar

Martin planetexpress69

  • Bruce & Bifi
View GitHub Profile
$GPVTG,,,0.00,M,0.00,N,0.00,K*04
02f801008efc00000000ffff00
$GPVTG,,,358.60,M,0.00,N,0.00,K*0C
02f801008ffd7cf40000ffff00
$GPGSA,A,1,,,,,,,,,,,,,,,,*32
03fa01008fff9600ff7fff7f00
$GPHDG,97.70,,,1.40,E*09
12f10100ff9c42ff7fff7ffd00
$GPROT,-3.01,A*2E
13f10100ff6e92ffffffffff00
@planetexpress69
planetexpress69 / keybase.md
Created October 30, 2017 05:42
keybase.md

Keybase proof

I hereby claim:

  • I am planetexpress69 on github.
  • I am martin_kautz (https://keybase.io/martin_kautz) on keybase.
  • I have a public key ASAFOhWtr4lbyFS1x5vubqcLZVplfTCCEzHzmrtlMX7q-Qo

To claim this, I am signing this object:

@planetexpress69
planetexpress69 / sessionquestion.js
Created November 3, 2016 14:13
session.attemptedTransition
//Route (AuthenticatedRouteMixin)
init: function() {
this._super(...arguments);
},
beforeModel(transition) {
if (!this.get('session.isAuthenticated')) {
let authenticationRoute = "login";
this.set('session.attemptedTransition', transition);
{{#ui-search
minCharacters=2
apiSettings=apiSettings
onSelect=(action (mut selected))
onResults=(action 'processResponse')
}}
<input class="prompt" type="text" placeholder="POL">
<div class="results"></div>
{{/ui-search}}
/*jshint node:true*/
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var Funnel = require('broccoli-funnel');
function BuildException(message) {
this.message = message;
this.toString = function() {
return this.message;
};
{
asimOid = 0000000000032c310003003a;
auxName = "DOM 4-8 VARIODYN\U00ae D1 (G2), f\U00fcr 24V USV";
features = (
{
contentHtml = "<img class=\"asimCommerce web_logo\" src=\"Graphics/XPic2/00139559_0.png\" />";
contentPlain = "Graphics/XPic2/00139559_0.png";
dimension = "";
documentIds = {
ids = 23000002;
{
features = (
{
SMZFeatures = (
{
childFeatures = (
{
displayType = "";
featureName = "WEB_NAME_comp";
filterType = "";
@planetexpress69
planetexpress69 / snip.m
Last active January 12, 2016 08:45
Product parsing for a certain project
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
CGRect viewFrame = self.view.frame;
viewFrame.size.height -= 90; // uistatusbar + navigationbar + title bar!
viewFrame.origin.y = 44;
self.tableView.frame = viewFrame;
self.foo = [NSMutableArray new];
@planetexpress69
planetexpress69 / bump.sh
Last active January 5, 2016 11:14
Ember project versioning
#!/bin/bash
if [ $# -eq 1 ]
then
version="$1"
echo "Bumping to version $version..."
npm version $version
git push --follow-tags
ember deploy production
exit 0
else
CURR=1
SUBNET="10.0.0"
while [ $CURR -lt 255 ] ; do
ping -c1 -t1 $SUBNET.$CURR 2>&1 >/dev/null
if [ "$?" -eq "0" ]; then
echo "$SUBNET.$CURR"
fi
let CURR=$CURR+1
done