Skip to content

Instantly share code, notes, and snippets.

{
"actor": {
"name": "Sally Student",
"account": {
"homePage": "https://connected.mcgraw-hill.com",
"name": "sally518"
}
},
"verb": {
"id": "http://mheducation.com/lrs/verbs/completed",
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
@oravecz
oravecz / async_example.js
Created July 6, 2014 01:08
Promises Presentation
(function() {
var a = 10;
setTimeout(function() {
a = a + 10;
}, 1000);
console.log('Value of a: ' + a);
$(document).on("init", function(){
var frame;
if (mghApiLoaded) {
if(typeof MGH_API != "undefined"){
activityAPI = new MGH_API();
frame = new buildingblock(params);
frame.init();
} else {
setTimeout(arguments.callee, 100);
@oravecz
oravecz / main.js
Last active August 29, 2015 13:56
EJS - Hello World
var {Application} = require( 'stick' );
var response = require( 'ringo/jsgi/response' );
var app = exports.app = new Application();
app.configure( 'route' );
app.get( '/', function ( req ) {
return response.html( 'Hello, World' );
} );
var log = require( 'ringo/logging' ).getLogger( module.id );
function main() {
log.info( 'Executing main' );
require( 'system' ).exit( 0 );
}
if ( require.main === module ) {
require( "ringo/engine" ).addShutdownHook( function () {
log.error( 'SHUTTING DOWN' );
2012-04-20 13:45:26
Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.6-b01-414 mixed mode):
"hz._hzInstance_1_hazelcast-jcook.MC.UDP.Listener" prio=5 tid=7ff818850800 nid=0x11770e000 runnable [11770d000]
java.lang.Thread.State: RUNNABLE
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
- locked <7c839ac68> (a java.net.PlainDatagramSocketImpl)
at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:145)
- locked <7c839ac68> (a java.net.PlainDatagramSocketImpl)
at java.net.DatagramSocket.receive(DatagramSocket.java:725)
"main" prio=5 tid=7fd814000800 nid=0x10d832000 waiting on condition [10d82e000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <7c7248950> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1987)
at com.hazelcast.util.ResponseQueueFactory$LockBasedResponseQueue.take(ResponseQueueFactory.java:44)
at com.hazelcast.impl.FactoryImpl.createInstanceClusterWide(FactoryImpl.java:816)
at com.hazelcast.impl.FactoryImpl.getOrCreateProxy(FactoryImpl.java:555)
at com.hazelcast.impl.FactoryImpl.getOrCreateProxyByName(FactoryImpl.java:544)
1. I've installed stock Wordpress 3.3.1 and uploaded the
WPML 2.4.3. The blog has the "Hello World!" post and
the "Sample Page" page.
2. I activate the WPML plugin and accept the defaults.
3. I activate XML-RPC.
4. Using XML-RPC, I perform a getPost() to obtain the
first post details.
{
"dateCreated": "2012-04-03T19:52:44.000Z",
"userid": "1",
<div>
<ul>
<li>I've installed stock Wordpress 3.3.1 and uploaded the WPML 2.4.3.</li>
<li>The blog has the &quot;Hello World!&quot; post and the &quot;Sample Page&quot; page. </li>
<li>I activate the WPML plugin and accept the defaults.</li>
<li>I activate XML-RPC.</li>
<li>Using XML-RPC, I perform a getPost() to obtain the first post details.<br />
{    &quot;dateCreated&quot;: &quot;2012-04-03T19:52:44.000Z&quot;,
<div>    &quot;userid&quot;: &quot;1&quot;,</div>
<div>    &quot;postid&quot;: 1,</div>