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
extends KinematicBody2D | |
signal has_reached_target_position | |
export var targetPosition = Vector2(-1, -1) | |
var isDragging: bool = false | |
var hasReachedTargetPosition: bool = false | |
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
const express = require('express') | |
const app = express() | |
const port = 5511 | |
app.get('/get-dnd-state', (req, res) => { | |
const { exec } = require('child_process') | |
exec('osascript -l JavaScript ~/bin/get-focus-mode.scpt', (error, stdout, stderr) => { | |
if (error || stderr) { | |
res.send('No focus') |
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 Phaser from 'phaser' | |
export default class NhbIntroPlugin extends Phaser.Plugins.ScenePlugin { | |
constructor (scene, pluginManager) { | |
super(scene, pluginManager) | |
this.defaultConfig = { | |
skipKeys: ['ENTER', 'SPACE'], | |
} |
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
<template> | |
<div class="navigation-animation"> | |
<nav class="nav" ref="menu"> | |
<a | |
v-for="(link, index) in links" | |
:key="index" | |
:href="link.url" | |
:class="{ 'link-item': true, 'active': link.active }" | |
>{{ link.title }}</a> | |
<div ref="activeState" class="active-state" /> |
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 | |
/** | |
* Example: | |
* php index.php /var/www/my_directory_to_search | |
*/ | |
class Inputter | |
{ | |
/** @var string */ | |
private $searchDirectory; |
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
// src/App.vue | |
<template> | |
<div> | |
<newsticker :text="Lorem ipsum dolor sit amet." /> | |
</div> | |
</template> | |
<script> | |
import Newsticker from '~/components/Newsticker' |
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
// src/components/Newsticker.vue | |
<script> | |
export default { | |
props: { | |
text: { type: String, required: true }, | |
}, | |
data: () => ({ | |
elementId: 'newsticker', |
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
// src/components/Newsticker.vue | |
<style lang="scss" scoped> | |
.newsticker { | |
height: 100px; | |
overflow: hidden; | |
position: relative; | |
&__text { | |
white-space: nowrap; |
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
// src/components/Newsticker.vue | |
<template> | |
<div :ref="elementWrapperId" class="newsticker" @click="toggleAnimation"> | |
<div :ref="elementId" class="newsticker__text">{{ text }}</div> | |
</div> | |
</template> |
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
<template> | |
<div :ref="elementWrapperId" class="newsticker" @click="toggleAnimation"> | |
<div :ref="elementId" class="newsticker__text">{{ text }}</div> | |
</div> | |
</template> | |
<script> | |
export default { | |
props: { | |
text: { type: String, required: true }, |
NewerOlder