Skip to content

Instantly share code, notes, and snippets.

View moshfeu's full-sized avatar
🇮🇱
Standing for

Mosh Feu moshfeu

🇮🇱
Standing for
View GitHub Profile
@moshfeu
moshfeu / input.scss
Created March 16, 2022 10:34
Generated by SassMeister.com.
body {
html:not(.dont-overflow-hidden-site-root) & #site-root {
overflow: hidden;
}
}
@moshfeu
moshfeu / input.scss
Created March 8, 2022 18:04
Generated by SassMeister.com.
body {
html:not(.dont-overflow-hidden-site-root) & #site-root {
overflow: hidden;
}
}
@moshfeu
moshfeu / input.scss
Created February 10, 2022 12:30
Generated by SassMeister.com.
.element {
&.look-i-have-also-this-class {
background: 'red';
}
.my-parent-has-this-class & {
background: 'red';
}
}
@moshfeu
moshfeu / input.scss
Created January 31, 2022 10:26
Generated by SassMeister.com.
.header-m-mobile {
$font-size: 24;
$line-height: 1.33;
font-size: $font-size;
line-height: #{round($font-size * $line-height)}px;
}
@mixin text($font-size, $line-height) {
font-size: $font-size;
line-height: #{round($font-size * $line-height)}px;
@moshfeu
moshfeu / page.js
Last active September 25, 2020 22:28
Corvid Analytics page's code
import wixData from 'wix-data';
import _ from 'lodash';
$w.onReady(function () {
const getDataPromise = wixData.query('views').find();
// The iframe is ready
$w('#html1').onMessage(async ({ data }) => {
if (data.type === 'ready') {
const results = await getDataPromise;
@moshfeu
moshfeu / iframe.html
Last active September 25, 2020 22:20
Corvid Analytics iframe's code
<!DOCTYPE html>
<html>
<body>
<script
type="text/javascript"
src="https://www.gstatic.com/charts/loader.js"
></script>
<div id="chart_div"></div>
<siv id="loading">Loading...</siv>
const select = $("#pipe_name" + j)
.select2({
placeholder: '-- Choose Pipe Name --',
theme: "bootstrap",
width: '100%'
})
.html('');
.append('<option value="">-- Choose Pipe Name --</option>');
$.ajax({
const App = () => {
const [isLoadgin, setIsLoading] = useState(true)
const [cardInfo, setCardInfo] = useContext(CardInfoContext)
useEffect(() => {
fetchData(result => {
setCardInfo(result);
setIsLoading(false);
})
}, [])
@moshfeu
moshfeu / post.html
Created March 30, 2020 07:39
jekyll highlight code
{% highlight html linenos %}
<button>do alert</button>
<script>
document.querySelector('button').addEventListener('click', () => {
alert('clicked');
})
</script>
{% endhighlight %}
@moshfeu
moshfeu / index.js
Created September 8, 2019 14:33
Get the most quality downloadable video url in youtube
// run it in the console
JSON.parse(ytplayer.config.args.player_response).streamingData.formats.sort((a, b) => a.width - b.width).pop().url