This file contains 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
-- you'll need a users table with corresponding roles for ids 1-6 | |
-- | |
-- Table structure for table `roles` | |
-- | |
DROP TABLE IF EXISTS `roles`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `roles` ( |
This file contains 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
// from head wrapped in script tag | |
Gmaps.still_image_extended_content_values_location_map_div = new Gmaps4RailsGoogle(); | |
function load_still_image_extended_content_values_location_map_div() { | |
Gmaps.still_image_extended_content_values_location_map_div.map_options.center_latitude = -41.1796666666667; | |
Gmaps.still_image_extended_content_values_location_map_div.map_options.disableDoubleClickZoom = true; | |
Gmaps.still_image_extended_content_values_location_map_div.map_options.draggable = true; | |
Gmaps.still_image_extended_content_values_location_map_div.map_options.center_longitude = 174.958833333333; | |
Gmaps.still_image_extended_content_values_location_map_div.map_options.container_id = 'map_container_still_image_extended_content_values_location_map_div'; |
This file contains 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
<h2>New Image</h2> | |
<form action="/en/site/images/create" enctype="multipart/form-data" method="post"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="uxGAMVOxtD8+B+cP+HFk7iB/7N0dnauybaHYI8dWCv4=" /></div> | |
<fieldset> | |
<p class="required"><em>* denotes a required field</em></p> | |
This file contains 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
// this gives selected result and the user's selected size | |
// and outputs end result of oembed request for html to embed the result at the selected size | |
this.get('#/selections/:id', function(context) { | |
$('#result-description-and-sizes').fadeOut(); | |
$('#page-spinner').fadeIn(); | |
// params['id'] decodes to normal url, but we need escaped version | |
var oembedUrl = this.params['id']; | |
$.get(oembedUrl) |
This file contains 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
libtool: compile: /usr/bin/llvm-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/include/libxml2 -I/usr/local/Cellar/icu4c/4.3.1/include -D YAZ_HAVE_ICU=1 -I../libstemmer_c/include -O3 -march=core2 -msse4.1 -w -pipe -D_THREAD_SAFE -c icu_chain.c -fno-common -DPIC -o .libs/libyaz_icu_la-icu_chain.o | |
In file included from /usr/include/libxml2/libxml/parser.h:798, | |
from /usr/include/libxml2/libxml/globals.h:18, | |
from /usr/include/libxml2/libxml/threads.h:35, | |
from /usr/include/libxml2/libxml/xmlmemory.h:218, | |
from /usr/include/libxml2/libxml/tree.h:1248, | |
from ../include/yaz/xmltypes.h:36, | |
from ../include/yaz/icu.h:38, | |
from ../include/yaz/icu_I18N.h:46, | |
from icu_chain.c:18: |
This file contains 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
Lm.PostsCollectionView = Em.CollectionView.extend | |
tagName: 'tbody' | |
didInsertElement: -> | |
# changes position property of fieldCategories accordingly | |
# and pushes changes to server with commit | |
@$().sortable | |
items: 'tr' | |
containment: @$() | |
stop: (evt, ui) -> | |
# TODO: would be nice to do this in a proper transaction |
This file contains 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
App.SomeModel = App.Model.extend | |