Skip to content

Instantly share code, notes, and snippets.

View joedeveloper's full-sized avatar

joedeveloper

View GitHub Profile
// *******************************************************************
// Arduino Nano 5V example code -- adapted to use analog joystick as input
// for https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC
//
// Copyright (C) 2019-2020 Emanuel FERU <aerdronix@gmail.com>
//
// *******************************************************************
// INFO:
// • This sketch uses the the Serial Software interface to communicate and send commands to the hoverboard
// • The built-in (HW) Serial interface is used for debugging and visualization. In case the debugging is not needed,
ar combinedQuery = gql `query get_users_me_reserve($url_name: String){
reserve(url_name: $url_name){
reserve
sponsored
}
users{_id profile{firstName,lastName,profilePicture,profileText,defaultColor}}
me{_id profile{firstName,lastName,profilePicture,profileText,defaultColor}}
}`;
const UglyMapWithData = graphql(combinedQuery, {
props: (props) => {
Fields: { 'Dep.Port': 1, 'Arr.Port': 1, FlightNo: 1 }
Query: {
"$or":[
{"Carrier.Code":"PK","FlightNo":"267","EffDates.From":{"$lte":"2016-09-08T09:21:58.054Z"},"EffDates.To":{"$gte":"2016-09-08T09:21:58.054Z"}},
{"Carrier.Code":"PK","FlightNo":"721","EffDates.From":{"$lte":"2016-09-08T09:21:58.054Z"},"EffDates.To":{"$gte":"2016-09-08T09:21:58.054Z"}},
{"Carrier.Code":"PK","FlightNo":"789","EffDates.From":{"$lte":"2016-09-08T09:21:58.054Z"},"EffDates.To":{"$gte":"2016-09-08T09:21:58.054Z"}},
{"Carrier.Code":"PK","FlightNo":"306","EffDates.From":{"$lte":"2016-09-08T09:21:58.054Z"},"EffDates.To":{"$gte":"2016-09-08T09:21:58.054Z"}},
{"Carrier.Code":"PK","FlightNo":"797","EffDates.From":{"$lte":"2016-09-08T09:21:58.054Z"},"EffDates.To":{"$gte":"2016-09-08T09:21:58.054Z"}}
]}
/* https://rawgit.com/joedeveloper/e48f4a800b23d9f7050cd83fc10ec919/raw/WL_embed_styles.css */
* {font-family: 'Roboto Condensed' !important;box-sizing: border-box !important;}
body {background: #fff;}
.winpowered {background-color: white;box-shadow: 0 0 5px black;border-radius: 5px;margin: 5px;}
input, select {/*box-shadow: inset 2px 2px 6px -1px orange;*/height:37px;}
.tt-container {background-color: orange;}
/* https://rawgit.com/joedeveloper/e48f4a800b23d9f7050cd83fc10ec919/raw/WL_embed_styles.css */
body {background-color: orange;}
.winpowered {
background-color: white;
box-shadow: 0 0 5px black;
border-radius: 5px;
margin: 5px;
}
{
"Status": "True",
"Message": "Success",
"Payload": {
"Status": "True",
"Result": [
{
"Container_no": "TRLU7049571",
"Bl_no": "null",
"Booking_no": "null",
{
"AirlineName": "China Airlines Cargo",
"AirlinePrefix": "297",
"AirlineCodeIATA": "CI",
"AwbNumber": "30169624",
"Statuses": [
{
"AirportCode": "BKK",
"Details": [
{
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "/",
"type": "object",
"description": "Results returned by WIN UAT API for successful AWBno searches",
"properties": {
"AirlineName": {
"id": "AirlineName",
"type": "string",
"description": "Human Readable Airline name.",
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive Design Testing</title>
<style>
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }
.wrapper { width: 6000px; }
.frame { float: left; }
h2 { margin: 0 0 5px 0; }
@joedeveloper
joedeveloper / gist:1731427
Created February 3, 2012 18:03
Ancient script loader
/** helper function to dynamically include js */
var js;
function include_js(file) {
var html_doc = document.getElementsByTagName('head')[0];
js = document.createElement('script');
js.setAttribute('type', 'text/javascript');
js.setAttribute('src', file);
html_doc.appendChild(js);