Skip to content

Instantly share code, notes, and snippets.

View cronco's full-sized avatar
😀

Mihai Chereji cronco

😀
View GitHub Profile
@cronco
cronco / main.js
Created March 6, 2012 15:34
sproutcore issue - availableList contentBinding crashes app
/* ... */
var items = Items.store.find('Items.Item');
Items.selectedItemsController.set('content',[]);
Items.mainItemsController.set('content', items);
/* ... */
@cronco
cronco / query.xml
Created October 21, 2013 17:04
Named highways in bbox overpass query
{{key=highway}}
{{keyw=name}}
{{value=Cluj-Napoca}}
{{type=way}}
<osm-script output="json">
<union>
<query type="{{type}}">
<has-kv k="{{key}}"/>
<has-kv k="{{keyw}}"/>
@cronco
cronco / main.js
Created July 28, 2014 18:31
ClassOwl watch video (slightly edited)
//$videoContent, $videoOverlay initialized elsewhere...
var watchVideo = function(e) {
e.preventDefault();
var container = $('.video-container');
$('html, body').animate({
scrollTop: parseInt(container.offset().top, 10)
}, function() {
playVideo(e);
});
return false;
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<style id="jsbin-css">
label {
Number/Months 1 2 3 4 5 6 7 8 9 10 11 12
1 5.00 5.00 4.5 4.5 4.5 4.25 4.25 4.25 4 4 4.00 3.50
2 5.00 5.00 4.5 4.5 4.5 4.25 4.25 4.25 4 4 4.00 3.50
3 5.00 5.00 4.5 4.5 4.5 4.25 4.25 4.25 4 4 4.00 3.50
4 5.00 5.00 4.5 4.5 4.5 4.25 4.25 4.25 4 4 4.00 3.50
5 4.50 4.50 4.05 4.05 4.05 3.83 3.83 3.83 3.6 3.6 3.60 3.15
6 4.50 4.50 4.05 4.05 4.05 3.83 3.83 3.83 3.6 3.6 3.60 3.15
7 4.50 4.50 4.05 4.05 4.05 3.83 3.83 3.83 3.6 3.6 3.60 3.15
8 4.50 4.50 4.05 4.05 4.05 3.83 3.83 3.83 3.6 3.6 3.60 3.15
9 4.50 4.50 4.05 4.05 4.05 3.83 3.83 3.83 3.6 3.6 3.60 3.15
@cronco
cronco / greaterThan9900.js
Last active March 24, 2017 17:54
for jsbin
window.greaterThan9900 = function(number) {
return number > 9900;
};