This file contains hidden or 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
@Preview | |
@Composable | |
fun DragNDropComponent() { | |
Column(modifier = Modifier.size(100.dp).background(Color.Red)) { | |
// The updatable Drag and Drop data | |
var x by remember{ mutableStateOf(0f)} | |
var y by remember { mutableStateOf(0f)} | |
// The offsets that is always update, that place the component to be dragged | |
val offsetX = with(DensityAmbient.current) { |
This file contains hidden or 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
# coding: utf-8 | |
from tkinter import Tk, Label, Entry, Button | |
from tkinter.messagebox import showinfo, showerror | |
def greet(name): | |
if len(name) > 0 : | |
showinfo(title="", message="Bonjour {} !".format(name)) | |
else : | |
showerror(title="Aucun nom", message="Aucun prénom renseigné") |
This file contains hidden or 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
"use strict" | |
const tokenize = require("./constraint_script_lexer").tokenize | |
const ConstraintScriptParser = require("./constraint_script_parser").ConstraintScriptParser | |
const parserInstance = new ConstraintScriptParser() | |
function parse(str) { | |
const tokens = tokenize(str) | |
parserInstance.input = tokens |
This file contains hidden or 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
[package] | |
name = "imgui-hello-world" | |
version = "0.1.0" | |
authors = ["loloof64"] | |
edition = "2018" | |
[dependencies] | |
clipboard = "0.5" | |
imgui = "0.2.1" | |
imgui-glium-renderer = "0.2.0" |
This file contains hidden or 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
package main | |
import ( | |
"image/color" | |
"fyne.io/fyne" | |
"fyne.io/fyne/canvas" | |
"fyne.io/fyne/layout" | |
"fyne.io/fyne/widget" | |
) |
This file contains hidden or 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
OBJS = bitbase.o bitboard.o endgame.o evaluate.o main.o \ | |
material.o misc.o movegen.o movepick.o pawns.o position.o psqt.o \ | |
search.o thread.o timeman.o tt.o uci.o ucioption.o | |
EXE = stockfish.wasm | |
CXXFLAGS = -Oz -DNDEBUG --closure 1 -s ENVIRONMENT=web -s INLINING_LIMIT=1 -s WASM=1 -fPIC -s EVAL_CTORS=0 -s ALLOW_MEMORY_GROWTH=1 -s BINARYEN_ASYNC_COMPILATION=1 -s NO_FILESYSTEM=1 -s STANDALONE_WASM | |
LDFLAGS = -Oz -DNDEBUG --closure 1 -s ENVIRONMENT=web -s INLINING_LIMIT=1 -s WASM=1 -fPIC -s EVAL_CTORS=0 -s ALLOW_MEMORY_GROWTH=1 -s BINARYEN_ASYNC_COMPILATION=1 -s NO_FILESYSTEM=1 -s STANDALONE_WASM | |
clean: |
This file contains hidden or 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
[package] | |
name = "tic-tac-toe-asm" | |
version = "0.1.0" | |
authors = ["Laurent Bernabé <[email protected]>"] | |
edition = "2018" | |
[dependencies] | |
yew = "0.6.0" | |
stdweb = "0.4.17" |
This file contains hidden or 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
<template> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-xs-12"> | |
<br> | |
<button class="btn btn-primary" @click="selected = 'blue'">Load Blue Template</button> | |
<button class="btn btn-success" @click="selected = 'green'">Load Green Template</button> | |
<button class="btn btn-danger" @click="selected = 'red'">Load Red Template</button> | |
<hr> | |
<app-blue v-show="blueOn"> |
This file contains hidden or 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
<template> | |
<div @click="updateDetails">Server #{{id}}</div> | |
</template> | |
<script> | |
import eventBus from '../Shared/EventBus'; | |
export default { | |
props: ['id', 'status'], | |
created(){ | |
eventBus.$on('resetServer', (id) => { |