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 HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello World!!!"); | |
} | |
} |
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
<table> | |
<caption>打开/前往</caption> | |
<colgroup> | |
<col style="text-align:left;width:150px"/> | |
<col style="text-align:left;"/> | |
</colgroup> | |
<thead> | |
<tr> | |
<th scope="col">快捷键</th> | |
<th scope="col">说明</th> |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
// Start setup running service | |
HostFactory.New(x => | |
{ | |
x.Service<DeployMonitorService>(c => | |
{ | |
c.ConstructUsing(s => ServiceLocator.Current.GetInstance<DeployMonitorService>()); | |
c.WhenStarted(s => s.Start()); | |
c.WhenStopped(s => s.Stop()); | |
c.WhenPaused(s => s.Pause()); | |
c.WhenContinued(s => s.Resume()); |
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
using System; using Microsoft.Practices.ServiceLocation; using Quartz; using Quartz.Spi; namespace Nebula.JobAgent.Common { public class JobFactory : IJobFactory { public Quartz.IJob NewJob(TriggerFiredBundle bundle, Quartz.IScheduler scheduler) { try { var jobDetail = bundle.JobDetail; var jobType = jobDetail.JobType; return (IJob)ServiceLocator.Current.GetInstance(jobType); } catch (Exception e) { var se = new SchedulerException("Problem instantiating class", e); throw se; } } public void ReturnJob(IJob job) { // TODO??? } } } |
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 static string localIPAddress() | |
{ | |
IPHostEntry host; | |
string localIP = ""; | |
host = Dns.GetHostEntry(Dns.GetHostName()); | |
foreach (IPAddress ip in host.AddressList) | |
{ | |
localIP = ip.ToString(); | |
String[] temp = localIP.Split('.'); |
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
'use strict'; | |
var lrSnippet = require('connect-livereload')(); | |
var mountFolder = function(connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
var proxySnippet = require('grunt-connect-proxy/lib/utils').proxyRequest; | |
module.exports = function(grunt) { |
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
define([''], function () { | |
'use strict'; | |
return { | |
initialize: function () { | |
// initialize function! | |
}, | |
/** | |
* 初始化要顯示在操作區的 View, Home 首頁 | |
*/ |
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
# | |
# Powershell script for adding/removing/showing entries to the hosts file. | |
# | |
# Known limitations: | |
# - does not handle entries with comments afterwards ("<ip> <host> # comment") | |
# | |
$file = "C:\Windows\System32\drivers\etc\hosts" | |
function add-host([string]$filename, [string]$ip, [string]$hostname) { |
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
/// <summary> | |
/// [Postman](http://getpostman.com) collection representation | |
/// </summary> | |
public class PostmanCollectionGet | |
{ | |
/// <summary> | |
/// Id of collection | |
/// </summary> | |
[JsonProperty(PropertyName = "id")] | |
public Guid Id { get; set; } |
OlderNewer