Skip to content

Instantly share code, notes, and snippets.

View unimonkiez's full-sized avatar

Yuval Saraf unimonkiez

  • Tel Aviv, Israel
View GitHub Profile
var inbarCalendarByUv = () => {
const CONTINUE_TEXT = 'המשך';
const GOOGLE_CAL_IMPORT_URL = 'https://calendar.google.com/calendar/r/settings/export';
const BTN_ID = 'uv-cal-btn';
const meetTypes = {
lecture: 1,
exercise: 2,
lab: 3,
freeHours: 4,
};
#!/bin/bash
#source ~/.my_custom_commands.sh
function rename-folder() {
for f in *.*; do
newname=`echo "$f" | sed -E "s/$1/$2/g"`
if [ $3 == 'do' ]
then
mv "$f" "$newname"
else
@unimonkiez
unimonkiez / fix-jsx-files
Created June 18, 2017 14:12
Replace all js files containing jsx code to jsx extension
find src -type f -name '*.js' | xargs grep -c '/>' $1 | awk '!/:0/' | sed -r 's/\.js.+//g' | xargs -I file echo file.js file.jsx
@unimonkiez
unimonkiez / index.html
Last active August 29, 2015 14:24
Bubble sort visualization using ES6
<div class="messy-array">
</div>
@unimonkiez
unimonkiez / PqaQbJ.markdown
Last active August 29, 2015 14:24
Bubble sort visualization using ES6