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
local MOVE_SPEED = 100 | |
function init(self) | |
-- Add initialization code here | |
-- Learn more: https://defold.com/manuals/script/ | |
-- Remove this function if not needed | |
msg.post("@render:", "use_camera_projection") | |
msg.post(".", "acquire_input_focus") | |
self.velocity = vmath.vector3() |
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
import { Text, View, StyleSheet, Animated, PanResponder } from "react-native"; | |
import { FlowText } from "../overrides/text"; | |
import { FlowHighLightView } from "../overrides/highlightview"; | |
import { FlowRow } from "../overrides"; | |
import { COLORS } from "@/constants/styles"; | |
import { useRef } from "react"; | |
import { useColorScheme } from "@/hooks/useColorScheme.web"; | |
import { flingGestureHandlerProps } from "react-native-gesture-handler/lib/typescript/handlers/FlingGestureHandler"; | |
export const ActivityItem = ({title}) => { |
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
using Godot; | |
using System; | |
public partial class DashState : Node | |
{ | |
Player characterNode; | |
public override void _Ready() | |
{ | |
base._Ready(); | |
characterNode = GetOwner<Player>(); |
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
using Godot; | |
using System; | |
public partial class IdleState : Node | |
{ | |
public override void _Ready() | |
{ | |
base._Ready(); | |
} |
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
using Godot; | |
using System; | |
using System.Reflection; | |
public partial class Player : CharacterBody3D | |
{ | |
[Export] private AnimationPlayer animationPlayerNode; | |
[Export] private Sprite3D sprite3DNode; | |
private Vector2 direction = Vector2.Zero; |
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
using Godot; | |
using System; | |
using System.Reflection; | |
public partial class Player : CharacterBody3D | |
{ | |
private Vector2 direction = Vector2.Zero; | |
private float Speed = 10; | |
public override void _PhysicsProcess(double delta) | |
{ |
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
extends Area2D | |
func _on_body_entered(body: Node2D) -> void: | |
if body is Player: | |
if body.velocity.y > 0: | |
body.jump() | |
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 = "yew-test" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
yew = { version = "0.20", features = ["csr"] } | |
web-sys = {version = "0.3", features = ["HtmlInputElement"]} # go between for web apis |
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 std::convert::TryInto; | |
use std::collections::HashSet; | |
use std::convert::TryInto; | |
fn longest_buzy_time(working_slots: Vec<Vec<u8>>) -> u8 { | |
let mut employee_longest_nonstop_work: Vec<u8> = Vec::new(); | |
for i in working_slots { | |
employee_longest_nonstop_work.push(longest_period(i)); | |
} | |
for i in 0..employee_longest_nonstop_work.len(){ |
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
head -20 first.sh | tail -5 | |
or | |
awk 'NR>=9 && NR <=14 {print}' first.sh | |
or | |
sed -n '8,13p' first.sh |