Skip to content

Instantly share code, notes, and snippets.

Avatar
💖
Almost done Rebooting

Faruk Ateş KuraFire

💖
Almost done Rebooting
View GitHub Profile
View GraphQL
{
globalTodoList {
id
items {
edges {
node {
text
complete
}
}
View backgroundSizeContain.js
tests['backgroundsize'] = function() {
set_css('background-size: contain');
return contains(m_style['backgroundSize'], 'contain');
};
@KuraFire
KuraFire / rgbaa.scss
Created Sep 13, 2012
More dynamic, oldIE-compatible SCSS function for rgba
View rgbaa.scss
@function rgbaa($args...) {
// rgbaa(#FFF, .5)
@if length($args) == 2 {
$hex: nth($args, 1);
$alpha: nth($args, 2);
@if $oldIE == 1 {
@return rgb(red($hex), green($hex), blue($hex));
} @else {
@return rgba(red($hex), green($hex), blue($hex), $alpha);
View Alternate CoC.md
@KuraFire
KuraFire / Alternative CoC (diff).md
Last active Dec 18, 2015
Copy-pasted old gist by unconed, then edited version by me, for online-accessible diffing purposes.
View Alternative CoC (diff).md
@KuraFire
KuraFire / i-pledge-to-be-better
Last active Dec 25, 2015
A pledge for people who want to make a statement about making our industry better.
View i-pledge-to-be-better
# I Pledge To Be Better
I want our industry to be a safe, welcoming and inclusive place for everyone, regardless of
their gender, abilities, skin color, sexual orientation, age, class, neuro-diversity or any other attribute.
I acknowledge that this is not currently the case, and will do my best, to the extent that I can
afford to dedicate to this, to help make ours a better community and industry.
I value the diversity of perspectives that people with different backgrounds bring to the table.
I will call out exclusionary practices, behaviors or cultures and see how, together, we can perhaps
reshape them to be inclusive and supportive instead.
@KuraFire
KuraFire / remove-parameter-on-page-ready.js
Last active Apr 15, 2020
Remove a query parameter from the URL (e.g. fbclid) and replace the history with the cleaner URL
View remove-parameter-on-page-ready.js
// Using jQuery
$(document).ready(function(){
// Remove fbclid
removeParam('fbclid');
function removeParam(parameter) {
let params = new URLSearchParams(document.location.search);
let urlParts = document.location.href.split('?');
let newUrl;
You can’t perform that action at this time.