This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main exposing (main) | |
import Dict exposing (Dict) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
import Http | |
import Json.Decode as Decode | |
import Random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main exposing (main) | |
import Dict exposing (Dict) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (..) | |
import Http | |
import Json.Decode as Decode | |
import Random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
license: gpl-3.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first check if there is no histogram around... | |
if @g.selectAll('path')[0].length == 0 | |
@bar = @g.selectAll("g.bar") | |
.data(data) | |
.enter().append("g") | |
@bar.append("rect") | |
# | |
# ...more code... | |
# | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# change owner recursively ... | |
postgres=# REASSIGN OWNED BY deciob TO decioc; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var setup_find_places = function() { | |
var search_container = $j("#searchResultsContainer"); | |
var place_input = $j("#placeName"); | |
var placeholder_place = place_input.val(); | |
place_input.focus(function() { | |
if (place_input.val() == placeholder_place) { | |
place_input.val(""); | |
} | |
}); | |
$j("#search-form").submit(function(e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in /coffee/views/tags_sidebar_view.coffee | |
mediator.publish 'TagsSidebarView:tagClicked', tag_name | |
#in /coffee/views/save_links_view.coffee | |
@subscribeEvent 'TagsSidebarView:tagClicked', @addTag | |
#in /coffee/views/links_view.coffee | |
@subscribeEvent 'TagsSidebarView:tagClicked', @setCurrentTag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Bootstrap the application | |
require(['chaplin_links_application'], function (LinksApplication) { | |
var app = new LinksApplication(); | |
app.initialize(); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="js/vendor/require-2.0.4.js"></script> | |
<script> | |
// Configure the AMD module loader | |
requirejs.config({ | |
// The path where your JavaScripts are located | |
baseUrl: './js/', | |
// Specify the paths of vendor libraries | |
paths: { | |
jquery: 'vendor/jquery-1.7.2', | |
tooltip: 'vendor/bootstrap-tooltip', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section id="nav-head" class="navbar navbar-fixed-top"></section> | |
<div class="row-fluid"> | |
<section id="links-section" class="span5"></section> | |
<section id="tags-section" class="span3"></section> | |
</div> |
NewerOlder