Skip to content

Instantly share code, notes, and snippets.

View S-Maxime's full-sized avatar
🐛

SENECHAL Maxime S-Maxime

🐛
  • Nice - France
View GitHub Profile
<template>
<Renderer ref="renderer"
antialias
orbit-ctrl>
<Camera :position="{ x: 0, y: 0, z: 1 }"
:fov="40"
:aspect="aspect"
:near="0.1"
:far="1000"
ref="camera"/>
@S-Maxime
S-Maxime / Demo5.vue
Last active November 11, 2020 22:10
<template>
<Renderer ref="renderer" antialias orbit-ctrl>
<Camera :position="{ x: 0, y: 150, z: -50 }" />
<Scene background="#FFF" ref="scene">
<PointLight color="#ff6000" :intensity="3" :position="{ x: 19, y: 150}" />
<PointLight color="#ff6000" :intensity="3" :position="{ x: -19, y: -150}" />
</Scene>
</Renderer>
</template>
// Go line 10368
/**
* matter-js 0.14.2 by @liabru 2018-06-11
* http://brm.io/matter-js/
* License MIT
*/
/**
* The MIT License (MIT)
<template>
<Page>
<StackLayout>
<Label
style="text-align:center; margin-bottom: 10; font-size: 24;"
text="Picker"></Label>
<Button height="44" @tap="openImagePicker"
text="Open ImagePicker"></Button>
<Button height="44" @tap="openVideoPicker"
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": false,
"sourceMap": false,
"watch": true,
"types":[
"node"
],
let speeches = [
{
id: 0,
start: 2,
close: 6,
duration : 4
},
{
id: 1,
start: 9,
<template>
<Page>
<GridLayout orientation="vertical" rows="auto, *">
<RadListView ref="listView"
for="item in itemList"
swipeActions="true"
@itemSwipeProgressStarted="onSwipeStarted">
<v-template>
<StackLayout class="item p-t-10" orientation="vertical">
<Label :text="item.name" class="nameLabel"></Label>
@S-Maxime
S-Maxime / Notifications.vue
Created May 18, 2020 12:35
Swipe to reveal action
<template>
<Page :actionBarHidden="true">
<SwipeCell>
<GridLayout slot="right" columns="auto">
<FlexboxLayout padding="21 0" backgroundColor="#50C878">
<SVGImage src="~/assets/images/skeleton/close.svg" margin="20" height="28" width="28" />
</FlexboxLayout>
</GridLayout>
<StackLayout class="notification-bg" v-shadow="2">
<FlexboxLayout justifyContent="space-between">
<template>
<GridLayout columns="auto, *, auto">
<ContentView ref="left" @layoutChanged="measure('left', $event)" v-if="$slots.left"
col="0">
<slot name="left" />
</ContentView>
<ContentView ref="right" @layoutChanged="measure('right', $event)"
v-if="$slots.right" col="2">
<slot name="right" />
<template>
<Page actionBarHidden="true">
<GridLayout columns="*" rows="50, *">
<GridLayout row="0" columns="*, *, auto" rows="*" id="actionBar">
<Label col="0" row="0" text="Back"></Label>
<Label col="1" row="0" text="qqq" class="title"></Label>
<FlexboxLayout col="2" row="0" id="options">
<Label text="+" @tap="addSong" />
<Label text="->" id="playbtn" @tap="play" />
<Label text="---" />