-
repo -> repository
-
clone
-> bring a repo down from the internet (remote repository like Github) to your local machine -
add
-> track your files and changes with Git -
commit
-> save your changes into Git -
push
-> push your changes to your remote repo on Github (or another website) -
pull
-> pull changes down from the remote repo to your local machine -
status
-> check to see which files are being tracked or need to be commited -
init
-> use this command inside of your project to turn it into a Git repository and start using Git with that codebase
Discover gists
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
sp = spotipy.Spotify( | |
auth_manager=SpotifyOAuth( | |
scope="playlist-modify-private", | |
redirect_uri="http://example.com", | |
client_id=YOUR UNIQUE CLIENT ID, | |
client_secret= YOUR UNIQUE CLIENT SECRET, | |
show_dialog=True, | |
cache_path="token.txt" | |
) | |
) |
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
// ************************************************** | |
// EXAMPLE USAGE: | |
// | |
// // Returns a single value with arguments x and y interleaved | |
// var code = MortonCode2D.Interleave( 123, 456 ); | |
// | |
// // Extracts the interleaved values (123 and 456) into integer variables x and y | |
// MortonCode2D.Deinterleave( code, out int x, out int y ) | |
// | |
// ************************************************** |
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
@Composable | |
fun FlipActionScreen() { | |
var flippedState by remember { mutableStateOf(false) } | |
val rotationY by animateFloatAsState( | |
targetValue = if (flippedState) 180f else 0f, | |
animationSpec = spring( | |
dampingRatio = Spring.DampingRatioHighBouncy, | |
stiffness = Spring.StiffnessVeryLow | |
) | |
) |
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
@Composable | |
fun RulerView( | |
startValue: Int, | |
endValue: Int, | |
step: Int | |
) { | |
val density = LocalDensity.current | |
val scrollState = rememberScrollState() | |
val sectionWidth = 80.dp | |
var sliderValue by remember { mutableFloatStateOf(0.5f) } |
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
#!/usr/bin/env python3 | |
''' | |
Thanks to Andres Torres | |
Source: https://www.pythoncentral.io/introduction-to-sqlite-in-python/ | |
''' | |
import sqlite3 | |
# Create a database in RAM |
Markdown - это облегчённый язык разметки, который преобразует текст в структурированный HTML. Следующее руководство поможет вам разобраться, как использовать Markdown.
# Заголовок первого уровня
## Заголовок второго уровня
### Заголовок третьего уровня
#### Заголовок четвёртого уровня
##### Заголовок пятого уровня
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
; if you're using the starter bundle file `docker/php/php-fpm.d/docker.conf` | |
[global] | |
daemonize = no | |
pid = run/php-fpm.pid | |
[www] | |
listen = /usr/local/var/run/php-fpm.sock | |
listen.owner = www-data | |
listen.group = www-data | |
listen.mode = 0660 |
NewerOlder