Skip to content

Instantly share code, notes, and snippets.

View maulayyacyber's full-sized avatar
👨‍💻
Working on @SantriKoding-com

Fika Ridaul Maulayya maulayyacyber

👨‍💻
Working on @SantriKoding-com
View GitHub Profile
@WesThorburn
WesThorburn / instructions.md
Last active April 25, 2025 13:50
Use Chart.js with Nuxt v2.11.0

Use Chart.js with Nuxt v2.11.0

Line chart example

  • Run npm i vue-chartjs
  • Run npm i chart.js hchs-vue-charts
  • Create a file called chart.js and save it in the /plugins directory
  • Give chart.js the following contents
import Vue from 'vue'
import { Line } from 'vue-chartjs'
chcon -R -t httpd_sys_rw_content_t storage
@SunDi3yansyah
SunDi3yansyah / README.md
Last active November 13, 2018 03:31
Content use Infinite Scroll with Masonry and ImagesLoaded
@SunDi3yansyah
SunDi3yansyah / migrate-gems.sh
Created April 16, 2018 09:08 — forked from keltia/migrate-gems.sh
Migrate all gems from one Ruby version to another, useful when using `rbenv`
#!/bin/zsh -i
# if you're using ZSH, change the shebang above to "#!/bin/zsh -i"
eval "$(rbenv init -)"
if [ ${#} -ne 2 ]; then
echo >&2 Usage: $(basename ${0}) old-version new-version
exit 1
fi
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active May 15, 2025 02:40
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 15, 2025 02:02
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

def clean_for_action_based_url(url)
CGI.unescape(url || "").
gsub(/\/+/, "/").
tr('^a-z_-/', "")
end
def clean_url(url)
url = CGI.unescape(url || "")
url = url.gsub(/\A((https?:)?\/+)*/, "").gsub(/\/+/, "/")
url.split("/").map { |v| CGI.escape(v) }.