Skip to content

Instantly share code, notes, and snippets.

View EbbeVang's full-sized avatar

Ebbe Vang EbbeVang

View GitHub Profile
@EbbeVang
EbbeVang / gist:0241bb8fae300945904d371cd1891121
Created September 11, 2017 07:56
Moving and Sound example
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class keyboardInput : MonoBehaviour {
private Rigidbody2D rigidbody2D;
public float JumpForce;
@EbbeVang
EbbeVang / gist:4615cadc414d0794604f7f504cb02898
Created March 24, 2017 10:20
a* algortihm exercise improved
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Schema;
using System;
using System.CodeDom;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Schema;
package com.company;
import java.util.ArrayList;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
// write your code here
@EbbeVang
EbbeVang / php soap example with football.php
Created November 11, 2016 09:47
using football soap service with php
<?php
$client = new SoapClient("http://footballpool.dataaccess.eu/data/info.wso?wsdl");
$result = $client->TopGoalScorers(array('iTopN'=>15));
?>
<pre>
<?php
echo print_r($result);
$arrayOfPlayers = $result->TopGoalScorersResult->tTopGoalScorer;
foreach ($arrayOfPlayers as $value)
@EbbeVang
EbbeVang / settings.ts
Last active September 8, 2016 07:41
typescript example of how to bind and react on a toggle
import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
import { AlertController } from 'ionic-angular';
@Component({
templateUrl: 'build/pages/contact/contact.html'
})
export class ContactPage {
constructor(public navCtrl: NavController, public alertCtrl: AlertController) {
@EbbeVang
EbbeVang / 0_reuse_code.js
Created September 6, 2016 06:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@EbbeVang
EbbeVang / home.ts
Created September 1, 2016 11:11
using an array and localstorage to save catches in our app
import {Component} from '@angular/core';
import {NavController} from 'ionic-angular';
import { AlertController } from 'ionic-angular';
import {Platform, ActionSheet, } from 'ionic-angular';
import {ActionSheetController} from 'ionic-angular';
import {Catch} from '../models/catch';
@EbbeVang
EbbeVang / anglersLog-enterCatch
Created September 1, 2016 09:23
ionic example using ionic components to add a catch in a anglerslog app
<ion-header>
<ion-navbar>
<ion-title>New Catch</ion-title>
</ion-navbar>
</ion-header>
<ion-content padding class="home">
<h2>Save your catches</h2>
<ion-list>
@EbbeVang
EbbeVang / analogConverter.py
Last active August 31, 2016 10:44
Read analog value from rPi
#experimenting with analogToDigital converter
# august 2016 Ebbe Vang
# for python3. smbus module required
import smbus
bus = smbus.SMBus(1)
print("Read from analog to digital converter")
print("Ctrl+c to stop")