This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%typemap(cstype, out="Microsoft.Xna.Framework.Vector2") const b2Vec2& "Microsoft.Xna.Framework.Vector2" | |
%typemap(csin, pre=" b2Vec2 temp$csinput = new b2Vec2($csinput.X, $csinput.Y);") const b2Vec2 & "$csclassname.getCPtr(temp$csinput)" | |
%typemap(cstype) b2Vec2 "Microsoft.Xna.Framework.Vector2" | |
%typemap(csout, excode=SWIGEXCODE) b2Vec2 %{ | |
IntPtr cPtr = $imcall;$excode | |
$csclassname temp = null; | |
if (cPtr != IntPtr.Zero) { | |
temp = new $csclassname(cPtr, $owner); | |
return new Microsoft.Xna.Framework.Vector2(temp.x, temp.y); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = array( | |
array( | |
'id' => 1, | |
'children' => array( | |
array( | |
'id' => 12, | |
'children' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The max-widths for the breakpoints | |
$breakpoints: ( | |
small: 568px, | |
medium: 1000px, | |
large: 1180px, | |
); | |
$breakpoints: map-merge($breakpoints, ( | |
small-only: max-width map-get($breakpoints, 'medium'), | |
medium-only: (map-get($breakpoints, 'small') + 1px) map-get($breakpoints, 'medium'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX wd: <http://www.wikidata.org/entity/> | |
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | |
PREFIX wikibase: <http://wikiba.se/ontology#> | |
PREFIX p: <http://www.wikidata.org/prop/> | |
PREFIX ps: <http://www.wikidata.org/prop/statement/> | |
PREFIX pq: <http://www.wikidata.org/prop/qualifier/> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX bd: <http://www.bigdata.com/rdf#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { h, Component } from 'preact'; | |
// | |
// Basic building blocks | |
// | |
export const BottomBar = ({ children, visible, expanded }) => { | |
const styles = [ | |
'bottom-bar', | |
visible && 'bottom-bar--visible', | |
expanded && 'bottom-bar--expanded', |