Skip to content

Instantly share code, notes, and snippets.

wunnle

Block or report user

Report or block wunnle

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
View allEmails.js
let allMails = [
{
date: '23 Jan',
from: 'Susanne',
subject: 'About holiday at July',
mail: 'Dear Leyda,as you probably know...',
isFavorited: false,
},
{
date: '22 Jan',
View return-parameter-excercise.js
// 1. returnNumber
// bir sayi alip onu return eden bir function yaz.
// test: console.log(returnNumber(5)) yapildiginda console'da 5 olmali
// 2. doubleNumber
// bir sayi alip onun iki katini return eden bir function yaz
// test: console.log(doubleNumber(5)) yapildiginda console'da 10 olmali
// 3. total
// iki sayi alip bu ikisinin toplamini return eden bir function yaz
View toggle3.scss
.toggle-checkbox {
// visually hidden but accessible
position: absolute;
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px
}
View toggle2.scss
.toggle-checkbox:checked + .toggle {
background: #4079F5;
transition: background 0.5s ease;
.toggle-pill {
margin-left: calc(100% - 12px);
}
}
.toggle-checkbox:focus + .toggle {
@wunnle
wunnle / regex.js
Created Mar 13, 2019
Regex for capturing data-attribute and innerHTML
View regex.js
<.+ data-lang="(\S+)".*>(.+)<\/.+>
View toggle1.scss
.toggle-checkbox + .toggle {
display: block;
width: 30px;
height: 16px;
background: #B7BABF;
border-radius: 26px;
opacity: 1;
padding: 2px;
box-sizing: border-box;
margin: auto;
View toggle1.html
<label for="checkbox">
<input type="checkbox" class="toggle-checkbox" id="checkbox">
<div class="toggle">
<div class="toggle-pill"></div>
</div>
</label>
View test-gist.js
function testGist() {
return 'this is another test gist'
}
View index.html
<div>
this is a test gist
</div
@wunnle
wunnle / redirector.json
Created Nov 14, 2018 — forked from enverarslan/redirector.json
Chrome Redirector Extension Redirects
View redirector.json
{
"createdBy": "Redirector v3.2",
"createdAt": "2018-09-08T00:00:00.000Z",
"redirects": [
{
"description": "i.redd.it",
"exampleUrl": "https://i.redd.it/rkonfpq0rtk11.jpg",
"exampleResult": "http://gir.epizy.com/i.redd.it/rkonfpq0rtk11.jpg",
"error": null,
"includePattern": "https://i.redd.it/*",
You can’t perform that action at this time.