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
/** | |
* Returns most popular(retrieved using records in portal_log) documents opened using portal. | |
* This rest service responds all these requests:<br/> | |
* ../log/top ({p:/?} makes / optional)<br/> | |
* ../log/top/<br/> | |
* ../log/top/10 (same as ../log/top)<br/> | |
* ../log/top/20 (any number is fine)<br/> | |
* | |
* @param numberOfItems max number of items, default 10 | |
* @return list of items containing cuid, rank and viewCount, ordered by viewCount desc |
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
import javax.ws.rs.WebApplicationException; | |
import javax.ws.rs.core.Response; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.stereotype.Component; | |
import com.sun.jersey.spi.container.ContainerRequest; | |
import com.sun.jersey.spi.container.ContainerRequestFilter; | |
import com.sun.jersey.spi.container.ContainerResponse; | |
import com.sun.jersey.spi.container.ContainerResponseFilter; |
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
* ğ - \u011f | |
* Ğ - \u011e | |
* ı - \u0131 | |
* İ - \u0130 | |
* ö - \u00f6 | |
* Ö - \u00d6 | |
* ü - \u00fc | |
* Ü - \u00dc | |
* ş - \u015f | |
* Ş - \u015e |
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
server { | |
listen 80; | |
server_name localhost; | |
root D:/Development/public; | |
sub_filter_once off; | |
location / { | |
if ($uri ~* /(\w+)\.html$) { | |
set $filename "$1"; |
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
>cleartool chtype compressed_file jquery-ui. min.js | |
Change version manager and reconstruct all versions for "jquery-ui.min.js"? [no] yes | |
Changed type of element "jquery-ui.min.js" to "compressed_file". |
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
navigator.contacts.find(['*'], function(contacts) { | |
alert("number of contacts: " + contacts.length); | |
$.each(contacts, function(i, contact) { | |
alert('contact object: ' + JSON.stringify(contact)); | |
}); | |
}, function(contactError) { | |
alert(contactError); | |
}, {"multiple": true}); |
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
$(window).on('orientationchange', function(event) { | |
if (event.orientation) { | |
if (event.orientation == 'portrait') { | |
//do something | |
} else if (event.orientation == 'landscape') { | |
navigator.camera.getPicture(onSuccess, onFail, {quality: 20}); | |
} | |
} | |
); |
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
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
var items = ['javascript','java','html','css','python','perl','c','c++']; | |
$.each(items,function(i,item){ | |
$('#items').append($('<li>').text(item)); |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>RabbitMq Json Definitions Generator</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
$('#generateBtn').on('click',function(){ | |
var generatedQueues = '' |
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
@echo off | |
SET CC_VOB_DIR= | |
SET CC_VIEW_TAG= | |
SET CC_COMPONENT_NAME= | |
SET CC_VOB_NAME= | |
SET TMP_SVN_EXPORT_DIR= | |
SET SVN_URL= | |
@echo deleting directory %TMP_SVN_EXPORT_DIR% |