Skip to content

Instantly share code, notes, and snippets.

@lfryc
lfryc / windows.md
Created August 29, 2014 11:51 — forked from edewit/windows.md

##Toast Notifications

toast specs.

{
    "title" : "The title",
    "alert" :"HELLO!",
    "duration" : "short|long",
    "launch" : {
        "type": "toast",
curl -u 19614a6d-94a4-4788-a0bb-9d559f841b58:221610d0-4668-4379-9db7-29a086c98793 -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"deviceToken":"BSPA91bGDWDdl-xW3EmSs2bH7Qlo5AOfbCJtmyOukYxVHq8KKUqpPLBLUjettGYoN2nahBbAe3GgmxKPcZnqEIFFxHw3_brKOSmeXjZQuEVehSJTUdJuXUCmR3XweZ2MM_455fYMcvkUse1DIp1wjxnik2uHYSNl87wrJzLddoC7tPp-gch3eJAf","alias":"bob","categories":["lead"],"deviceType" : "iPhone", "operatingSystem" : "iOS", "osVersion" : "6.1.2"}' http://localhost:8080/ag-push/rest/registry/device
window.Graphene = window.Graphene || {};
window.Graphene.Page = window.Graphene.Page || {};
window.Graphene.Page.XHRHalter = (function() {
var STATE_CONSTRUCT = -3,
STATE_OPEN = -2,
STATE_SEND = -1,
STATE_UNITIALIZED = 0,
@lfryc
lfryc / Foo.java
Created February 5, 2014 10:19 — forked from jhuska/Foo.java
@Override
public boolean canEnhance(InstanceOrCallableInstance instance, Class<?> droneType, Class<? extends Annotation> qualifier) {
if (RemoteWebDriver.class == droneType || ReusableRemoteWebDriver.class == droneType) {
return true;
}
Class<?> realInstanceClass = instance.asInstance(droneType).getClass();
if (RemoteWebDriver.class == realInstanceClass || ReusableRemoteWebDriver.class == realInstanceClass)
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 8.x
#author :Dmitriy Sukharev
#date :20131222
#usage :/bin/bash wildfly-install.sh
WILDFLY_VERSION=8.0.0.CR1
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION
WILDFLY_ARCHIVE_NAME=$WILDFLY_FILENAME.tar.gz
@lfryc
lfryc / accordion.java
Last active December 20, 2015 10:59 — forked from jhuska/accordion
package org.richfaces.tests.page.fragments.impl;
import org.jboss.arquillian.graphene.enricher.findby.FindBy;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import org.richfaces.tests.page.fragments.impl.accordion.RichFacesAccordion;
public class TestCase {
@Test
/*
* JBoss, Home of Professional Open Source
* Copyright ${year}, Red Hat, Inc. and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
package org.ced.web.rest.conference.test;
import static com.jayway.restassured.RestAssured.given;
import static org.hamcrest.Matchers.equalTo;
import java.io.File;
import java.net.URL;
import java.util.Date;
import org.ced.domain.Repository;
@lfryc
lfryc / gist:4275537
Created December 13, 2012 10:24 — forked from anonymous/gist:4275523
Migration script from Warp API Alpha1 to Alpha2
find -name "*.java" -exec sed -ri 's#ClientAction#Activity#g' {} \;
find -name "*.java" -exec sed -ri 's#ServerAssertion#Inspection#g' {} \;
find -name "*.java" -exec sed -ri 's#org\.jboss\.arquillian\.warp\.extension\.phaser#org.jboss.arquillian.warp.jsf#g' {} \;
find -name "*.java" -exec grep -q '@WarpTest' {} \; -exec sed -ri 's#execute\(#initiate(#' {} \;
find -name "*.java" -exec grep -q '@WarpTest' {} \; -exec sed -ri 's#public void action\(\)#public void perform()#' {} \;
find -name "*.java" -exec grep -q '@WarpTest' {} \; -exec sed -ri 's#filter\(#observe(#' {} \;
find -name "*.java" -exec grep -q '@WarpTest' {} \; -exec sed -ri 's#verify\(#inspect(#' {} \;
(E) ManagerProcessing
  (O) LoadableExtensionLoader.load
	(E) ServiceLoader
(E) ManagerStarted
	(O) ConfigurationRegistrar.loadConfiguration
	(E) ArquillianDescriptor
		(O) ProtocolRegistryCreator.createRegistry
		(E) ProtocolRegistry
		(O) ContainerRegistryCreator.createRegistry