Skip to content

Instantly share code, notes, and snippets.

View Aminadav's full-sized avatar
💭
typing...

Aminadav Glickshtein Aminadav

💭
typing...
View GitHub Profile
@Aminadav
Aminadav / form.frm
Last active August 29, 2015 14:24
Textarea in VBA and visual basic
VERSION 5.00
Begin {C62A69F0-16DC-11CE-9E98-00AA00574A4F} frm
ClientHeight = 4665
ClientLeft = 45
ClientTop = 390
ClientWidth = 6315
OleObjectBlob = "ff.frx":0000
RightToLeft = -1 'True
StartUpPosition = 1 'CenterOwner
End
-- test by do
-- select extract_json_value('{"a":["a","2"]}','(/a)')
-- common schema
delimiter //
drop function if exists json_to_xml//
create function json_to_xml(
json_text text charset utf8
var fs=require('fs')
var raw=fs.readFileSync(process.argv.pop()).toString()
// Remove first line
raw=raw.split('\n')
raw.shift()
raw=raw.join('\n')
tweets=JSON.parse(raw)
@Aminadav
Aminadav / cloudSettings
Last active June 12, 2018 09:52
Visual Studio Code Sync Settings Gist
{"lastUpload":"2018-06-12T09:52:12.194Z","extensionVersion":"v2.9.2"}
@Aminadav
Aminadav / כולל דגש אין שין
Last active May 9, 2018 09:34
אותיות אלף בית לספר
var str=''
var nikud=
[
String.fromCharCode(1460),
String.fromCharCode(1460) + 'י',
String.fromCharCode(1461),
String.fromCharCode(1462),
String.fromCharCode(1463),
String.fromCharCode(1464),
String.fromCharCode(1465),
{"web.whatsapp.com":{"_enabled":true,"_rules":{"div#pane-side":{"zoom":"0.5"},"div#pane-side span._1wjpf":{"font-size":"28px","line-height":"33px","margin-top":"20px"},"div#pane-side span._3T2VG":{"font-size":"25px","line-height":"25px"},"div#pane-side span._2ArBI":{},"div#pane-side span._2_LEW":{"display":"none"},"header._3AwwN":{"background":"#ffe000"},"header._3auIg":{"background":"#ffe000"}}},"www.google.co.il":{"_enabled":true,"_rules":{".sfbgg":{"background":"#ffe600"},"div#hdtbSum":{"background":"#ffe600"},".b0KoTc.B4GxFc":{"background":"#ffe600"},"div#fbar":{"background":"#ffe600","border-top":"none"},".fbar.b2hzT":{"border":"none"}}},"en.wikipedia.org":{"_enabled":true,"_rules":{"#mw-panel":{"background-color":"#ffe600"}}}}
<script>
x=location.hash.slice(1).split(',');
y=x[parseInt(Math.random()*x.length)]
location.href=y;
</script>
<script>
x=[
'https://en.wikipedia.org/wiki/Israel',
'https://en.wikipedia.org/wiki/United_states'
]
y=x[parseInt(Math.random()*x.length)]
location.href=y;
</script>
var y=0
var i=0
var done=false;
var last
function s(){
if(done) return;
var current=document.scrollingElement.scrollTop
if(last==current) {
i++
} else {