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
My Working Evn: | |
ubuntu@20.04 | |
docker@20.10 | |
nodejs@18.18 | |
yarn@1.22.19 |
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
public class Functions { | |
public static final SecurityFunction CloudCenter = new SecurityFunction("CloudCenter", | |
(Set)Collections.asSet(new SimpleAction(Function.ACTION_EDIT)), | |
new SimpleUIInfo("~@/cloud/RegionCloudCenter.zul","~./cloud/imgs/function/FN_CloudCenter.png","l:cloud.CloudCenter")); | |
public static final SecurityFunction CloudRentalCenter = new SecurityFunction("CloudRentalCenter", | |
(Set)Collections.asSet(new SimpleAction(Function.ACTION_EDIT)), | |
new SimpleUIInfo("~@/cloud/RegionCloudRentalCenter.zul","~./cloud/imgs/function/FN_CloudRentalCenter.png","l:cloud.RentalCenter")); | |
public static final SecurityFunction CloudAdminCenter = new SecurityFunction("CloudAdminCenter", |
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
public class GearRuleExaminationListener implements MessageListener { | |
@EJB | |
RuleActionSender actionSender; | |
public void onMessage(Message message) { | |
try { | |
TextMessage textMessage = (TextMessage) message; | |
String body = textMessage.getText(); | |
GearRuleExaminationParameter p = Jsons.fromJson(body, GearRuleExaminationParameter.class); | |
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
GearFactory gf = GearFactory.instance(); | |
gf.register(new LinuxGear()); |
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
public class Functions { | |
public static final SecurityFunction GearMonitorCenter = new SecurityFunction("GearMonitorCenter", | |
(Set)Collections.asSet(new SimpleAction(Function.ACTION_EDIT),new SimpleAction(Function.ACTION_ADMIN)), | |
new SimpleUIInfo("~@/yingzhun/GearMonitorCenter.zul","~./yingzhun/imgs/function/FN_GearMonitorCenter.png","l:yingzhun.GearMonitorCenter")); | |
public static final SecurityFunction GearChartCenter = new SecurityFunction("GearChartCenter", | |
(Set)Collections.asSet(new SimpleAction(Function.ACTION_EDIT)), | |
new SimpleUIInfo("~@/yingzhun/GearChartCenter.zul","~./yingzhun/imgs/function/FN_GearChartCenter.png","l:yingzhun.GearChartCenter")); |
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
public class Functions { | |
public static final SecurityFunction PersonalProfile = new SecurityFunction("PersonalProfile", | |
(Set)Collections.asSet(new SimpleAction(Function.ACTION_EDIT)), | |
new SimpleUIInfo("~@/zechguard/PersonalProfile.zul","~./zechguard/imgs/function/PersonalProfile.png","l:zechguard.PersonalProfile")); | |
public static final SecurityFunction UserCenter = new SecurityFunction("UserCenter", | |
(Set)Collections.asSet(new SimpleAction(Function.ACTION_ADMIN)), | |
new SimpleUIInfo("~@/zechguard/UserCenter.zul","~./zechguard/imgs/function/FN_UserCenter.png","l:zechguard.UserCenter")); | |
static{ |
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
version: '3.1' | |
services: | |
activemq: | |
image: webcenter/activemq:5.14.3 | |
restart: always | |
ports: | |
- 8161:8161 | |
- 61616:61616 | |
- 61613:61613 | |
volumes: |
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
@DynamicUnit(provider=TestUnitProvider.class) | |
Integer cpuLoading; | |
static public class TestUnitProvider implements GearDynamicUnitProvider{ | |
@Override | |
public String getUnit(Object bean, AccessibleObject member) { | |
return "JJ"; | |
} |
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
import React = require('react'); | |
import * as svgIcons from 'material-ui/svg-icons'; | |
function parseCategory(iconName: string) { | |
let cat: string[] = [iconName.charAt(0)]; | |
for (let i = 1; i < iconName.length; i++) { | |
let c = iconName.charAt(i); | |
if (c == c.toUpperCase()) { | |
break; | |
} |
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
package com.zechster.yingzhun.ui; | |
import java.io.File; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Queue; | |
import com.google.common.io.Files; | |
public class Test { |
NewerOlder