Emoji | Usage |
---|---|
🔥 | 🔥 Code Upload |
➕ | ➕ Add FILE NAME OR DESCRIPTION |
❌ | ❌ Remove FILE NAME OR DESCRIPTION |
🚀 | 🚀 Bump version to VERSION |
🖋 | 🖋 Edit FILE NAME OR DESCRIPTION |
🐛 | 🐛 Fix FILE NAME OR "Bugs" |
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
(function () { | |
let feedbackType = "r"; // Change to 'l' for left side, since sometimes negative and positive are switched :) | |
let rows = Array.from(document.querySelectorAll("table tr")); | |
rows.forEach((row) => { | |
let radios = Array.from(row.querySelectorAll('input[type="radio"]')); | |
if (radios.length > 0) { | |
let selection; | |
if (feedbackType === "r") { | |
selection = radios.slice(-3); |
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
import 'dart:async'; | |
// those are the events that the user can do, | |
// aka `add` to the bloc and manipulate the bloc state. | |
enum CounterEvent { | |
increment, | |
decrement, | |
reset, | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am yazeedalkhalaf on github. | |
* I am yazeedalkhalaf (https://keybase.io/yazeedalkhalaf) on keybase. | |
* I have a public key ASD512-RbZQiNslSr3IP2CjgZfoEwg2EWBl81XKGzZvOWwo | |
To claim this, I am signing this object: |
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
/// | |
/// This DartPad is a custom tab bar made using Flutter. | |
/// | |
/// Author: Yazeed AlKhalaf | |
/// Twitter: @YazeedAlKhalaf | https://twitter.com/YazeedAlKhalaf | |
/// | |
/// ** Please credit the author if you use this code or some of it! 🙈🚀 ** | |
/// ** DON'T REMOVE THOSE COMMENTS! ** | |
/// |
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
/// | |
/// This DartPad is profile card design that looks so cool! The | |
/// code is split into widgets that make interpreting the code | |
/// easier! You can change parameters to have different outcomes! | |
/// | |
/// Author: Yazeed AlKhalaf | |
/// Twitter: @YazeedAlKhalaf | https://twitter.com/YazeedAlKhalaf | |
/// | |
/// ** Please credit the author if you use this code or some of it! 🙈🚀 ** | |
/// |
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
(function () { | |
let toInsertDiv = document.createElement("div"); | |
let toInsertObject = document.createElement("object"); | |
let toInsertIframe = document.createElement("iframe"); | |
let pdfSrcUrl = prompt("Please enter the PDF source url"); | |
if (pdfSrcUrl == null) return; | |
let height = "787px"; |
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
#!/bin/sh | |
# Author: Yazeed AlKhalaf | |
# This is a simple script for appending a path to PATH environment variable | |
echo "" >> ~/.bashrc | |
echo "export PATH=\"\$PATH:$1\"" >> ~/.zshrc |
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
#!/bin/sh | |
# This is simple script for getting OS name and it's version | |
# Script outputs the string in the format: dist_name-dist_version | |
# e.g. fedora-14 | |
os=$(uname -s) | |
dist_name='unknown' | |
dist_version='unknown' | |
case "${os}" in |
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
:: PATH-ADD - add a path to user path environment variable | |
@echo off | |
setlocal | |
:: set user path | |
set ok=0 | |
for /f "skip=2 tokens=3*" %%a in ('reg query HKCU\Environment /v PATH') do if [%%b]==[] ( setx PATH "%%~a;%*" && set ok=1 ) else ( setx PATH "%%~a;%%~b;%*" && set ok=1 ) | |
if "%ok%" == "0" setx PATH "%*" |
NewerOlder