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
| #include <math.h> | |
| #include <stdlib.h> | |
| #include <raylib.h> | |
| #include <raymath.h> | |
| typedef struct Hermite { | |
| float x; | |
| float y; | |
| float d; | |
| } Hermite; |
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
| program pendulum | |
| implicit none | |
| real :: time, dt, g, l, y, v | |
| integer :: n, i | |
| read (*,*) time, dt, g, l, y, v | |
| n = ceiling(time / dt) | |
| do i=2,n |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| from machine import Pin | |
| import utime | |
| p = [Pin(i, Pin.OUT) for i in range(7)] | |
| button = Pin(28, Pin.IN, Pin.PULL_DOWN) | |
| digits = [ | |
| 0b0111111, | |
| 0b0000110, | |
| 0b1011011, |
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
| from machine import Pin | |
| import utime | |
| buzzer = Pin(16, Pin.OUT) | |
| dit_time = 0.05 | |
| dah_time = dit_time * 3 | |
| message = "SOS WE ARE SINKING" |
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
| // You can edit this code! | |
| // Click here and start typing. | |
| package main | |
| import "fmt" | |
| func shader(id int, c chan int) { | |
| x := id | |
| c <- x | |
| dx := <-c |
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
| function Item({ text, index, removeItem }) { | |
| return ( | |
| <div className="todoitem"> | |
| <p>{text}</p> | |
| <button onClick={e => removeItem(index)}>X</button> | |
| </div> | |
| ); | |
| } | |
| function App() { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer