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 folderName = "Test"; | |
var reqPermission = 0; // 0=None, 1=Limited, 2=Observer, 3=Owner | |
/***** | |
WARNING: This will overwrite the permissions of the items in the folder <folderName>! | |
That is, it will not keep the player permissions! | |
Tested on FoundryVTT 0.5.5 | |
******/ |
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
if (canvas.tokens.controlled.length === 0) | |
ui.notifications.error("Please select a token"); | |
if (game.modules.get("about-time").active != true) | |
ui.notifications.error("About Time isn't loaded"); | |
let namedfields = (...fields) => { | |
return (...arr) => { | |
var obj = {}; | |
fields.forEach((field, index) => { |
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 a script from the repository using a name-based path: | |
<import resource="/Company Home/Data Dictionary/Scripts/library.js"> | |
Import a script from the repository using a NodeRef reference: | |
<import resource="workspace://SpacesStore/6f73de1b-d3b4-11db-80cb-112e6c2ea048"> | |
Import a script from a Java classpath location: |
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
package org.alfresco.sample; | |
import org.springframework.context.ApplicationContext; | |
import org.alfresco.util.ApplicationContextHelper; | |
import org.alfresco.service.ServiceRegistry; | |
import org.alfresco.service.cmr.security.AuthenticationService; | |
import org.alfresco.repo.security.authentication.AuthenticationException; | |
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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
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 { Component, OnInit } from '@angular/core'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'] | |
}) | |
export class AppComponent implements OnInit { | |
title = 'jitsi'; | |
private jitsi: any; |
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 org.apache.cxf.configuration.jsse.TLSClientParameters; | |
import org.apache.cxf.helpers.IOUtils; | |
import org.apache.cxf.jaxrs.client.WebClient; | |
import org.apache.cxf.transport.http.HTTPConduit; | |
import org.apache.cxf.transports.http.configuration.HTTPClientPolicy; | |
... | |
WebClient client = WebClient.create(uri); |
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
<!-- | |
<project-directory> | |
- src | |
-main | |
- axis2 | |
<all-wsdl-and-xsd-files> | |
- java | |
<all-src-code> | |
- resources | |
- META-INF |
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
package com.app.web; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.stereotype.Service; | |
import com.google.web.bindery.requestfactory.server.ServiceLayerDecorator; | |
import com.google.web.bindery.requestfactory.shared.Locator; | |
import com.google.web.bindery.requestfactory.shared.RequestContext; | |
import com.google.web.bindery.requestfactory.shared.ServiceLocator; |
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
export class HttpService { | |
constructor(private http: Http) {} | |
public getSingle<T>(clazz: { new(): T }, url: string, headers?: {}): Promise<T> { | |
return new Promise((resolve, reject) => { | |
this.http.get(url, this.getHeaders(headers)).toPromise().then((response: any) => { | |
let body = response.json(); | |
if (body) { | |
resolve(MapUtils.deserialize(clazz, body)); | |
} else { |