Skip to content

Instantly share code, notes, and snippets.

go.ugotsta.com Ugotsta

Block or report user

Report or block Ugotsta

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Ugotsta
Ugotsta / vscode-snakecase-to-camelcase.md
Last active Feb 12, 2019
Convert all occurrences of snake_case to camelCase in VS Code. Windows/Linux walk-through here: https://youtu.be/vlHel1fN5_A
View vscode-snakecase-to-camelcase.md

Convert snake_case to camelCase in VS Code

  • Press CTRL-H ( ⌥⌘F on Mac ).
  • Press ALT-R ( ⌥⌘R on Mac ).
  • Type _([a-zA-Z]).
  • Press TAB and type $1.
  • Press ALT-ENTER ( ⌥ENTER on Mac ).
  • Press F1 and type upper, then press ENTER.
  • Press CTRL-ALT-ENTER ( ⌥ENTER on Mac ).
View vim-snakecase-to-camelcase.md

Convert snake_case to camelCase in Vim

Vim replace operation to convert snake_case to camelCase (credits @Sean C.): %s/_\([a-zA-Z]\)/\u\1/g

What's it for?

Automatically refactor a script's symbol names from snake_case to camelCase.

How to use it?

View tron-05.txt

▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓█
▓ █
▓ █
▓ █
▓ █
▓ ██████████████████████ █
▓ ████████████████████████████████ █ █
▓ █ ████████████ █
▓▓▓▓▓▓▓▓▓▓ █ ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒ █ █
View qb-stars.bas
DECLARE SUB PrintSomeStars (StarCount!)
REM QuickBASIC example
INPUT "What is your name: ", UserName$
PRINT "Hello "; UserName$
DO
INPUT "How many stars do you want: ", NumStars
CALL PrintSomeStars(NumStars)
DO
INPUT "Do you want more stars? ", Answer$
LOOP UNTIL Answer$ <> ""
View wp-loop.php
<?php
// the query
$the_query = new WP_Query( $args ); ?>
<?php if ( $the_query->have_posts() ) : ?>
<!-- pagination here -->
<!-- the loop -->
@Ugotsta
Ugotsta / static-ascii.txt
Last active Jun 22, 2018
"Static" logo in ASCII. Check it in glory: https://git.io/f4yg6
View static-ascii.txt
SSSSSSSSSSSSS
SSSSSSS...SSS...SSSSSSS
SSSS.........SSS.........SSSS
SSS............SSS............SSS
TTT..............TTT..............TTT
TTT................TTTT...............TTT
TTT....................TTTTT............TTT
TTT......................TTTTT............TTT
AA...................AAAAAA................AA
AAA...............AAAAA.....................AAA
View beatdown-instruments-of-mercy.css
/*
Theme name: Instruments of Mercy
*/
@import url('https://fonts.googleapis.com/css?family=Slabo+27px|Josefin+Slab');
$color: burlywood;
$srotateY: 357; /* .gd-slides {$gd_slider_srotateY="357,0,360,1,deg"} */
$srotateZ: 4; /* .gd-slides {$gd_slider_srotateZ="4,0,360,1,deg"} */
$eqrotateY: 358; /* .gd-slides {$gd_slider_eqrotateY="358,0,360,1,deg"} */
View beatdown-vibes.css
@import url('https://fonts.googleapis.com/css?family=Baloo');
* {
line-height: 120%;
font-family: 'Baloo', cursive;
}
.inner * {
text-shadow: 0px 1px 1px #DDDDEE, 0px 2px 2px #7788AA;
}
You can’t perform that action at this time.