Skip to content

Instantly share code, notes, and snippets.

View aytacmalkoc's full-sized avatar
🌎
develop for humans

Aytac Malkoc aytacmalkoc

🌎
develop for humans
View GitHub Profile
@ciamarro
ciamarro / livewire-directive.md
Created March 18, 2020 13:15
@livewire directive for phpstorm
  1. File > Settings > Languages & Frameworks > PHP > Blade
  2. Uncheck use default settings
  3. Directives > +
  4. Name livewire
  5. Prefix <?php '', [
  6. Suffix ])?&gt;
@LXGaming
LXGaming / README.md
Last active June 29, 2024 18:31
Frostpunk Cheat / Developer Mode

Developer Mode

  1. Start the game with -devconsole launch argument (Steam Guide / Epic Games Guide)
  2. Press the Backtick (Grave Accent) to toggle console

Commands

Command Description
SetGameTime(Day) Changes the day
SetResource("Id", Amount) Changes the resource amount. Quotes are required for the resource id
ShowDebugButtonsPanel Cheats / Debugging buttons
@sarthaksavvy
sarthaksavvy / Zsh
Last active March 17, 2023 18:37
Terminal Alias
export DEFAULT_USER="$(whoami)"
export PATH=~/.composer/vendor/bin:$PATH
# Alias for pythons
alias py=python
# Alias for composer
alias cr=composer
alias cri="composer install"
alias crd="composer dump-autoload"
@codeguy
codeguy / slugify.js
Created September 24, 2013 13:19
Create slug from string in Javascript
function string_to_slug (str) {
str = str.replace(/^\s+|\s+$/g, ''); // trim
str = str.toLowerCase();
// remove accents, swap ñ for n, etc
var from = "àáäâèéëêìíïîòóöôùúüûñç·/_,:;";
var to = "aaaaeeeeiiiioooouuuunc------";
for (var i=0, l=from.length ; i<l ; i++) {
str = str.replace(new RegExp(from.charAt(i), 'g'), to.charAt(i));
}