See (Bubble Chart)[https://github.com/phuonghuynh/bubble-chart/]
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 WebConfig extends WebMvcConfigurerAdapter { | |
@Resource | |
private Environment environment; | |
public void configureDefaultServletHandling(DefaultServletHandlerConfigurer configurer) { | |
configurer.enable(); | |
} | |
public void addViewControllers(ViewControllerRegistry registry) { |
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 HttpSessionInitializer extends AbstractHttpSessionApplicationInitializer { | |
protected String getDispatcherWebApplicationContextSuffix() { | |
return AbstractDispatcherServletInitializer.DEFAULT_SERVLET_NAME; | |
} | |
} |
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
http { | |
... | |
server { | |
... | |
location /ws { | |
proxy_pass http://127.0.0.1:8080/ws; | |
proxy_http_version 1.1; | |
proxy_set_header Upgrade $http_upgrade; | |
proxy_set_header Connection "upgrade"; | |
} |
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
$(".searchText").select2({ | |
width: "100%", | |
tags: tags, // => tagging support, allow use add new entry | |
tokenSeparators: [" "], // => to separate entries | |
formatSelection: instance.function (item) { | |
if (item.id === item.text) { | |
return "<div style='height: 16px;'>" + item.text + "</div>"; | |
} | |
return "<img style='width: 16px; height: 16px;' src='images/" + item.logo + "'> " + item.text + " </img>"; | |
}, // => "on select" : useful to handle "unidentified" entry (should return new tag) |
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 AuthenticationToken extends AbstractAuthenticationToken { | |
private String token; | |
public AuthenticationToken(String token) { | |
super(null); | |
this.token = token; | |
setAuthenticated(false); | |
} |
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
require 'net/http' | |
require 'uri' | |
require 'json' | |
require 'net/http' | |
@job_name = ENV['JOB_NAME'] | |
@build_number = ENV['BUILD_NUMBER'] | |
@jenkins_url = ENV['JENKINS_URL'] |
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
function Write-IStreamToFile([__ComObject] $istream, [string] $fileName) | |
{ | |
# NOTE: We cannot use [System.Runtime.InteropServices.ComTypes.IStream], | |
# since PowerShell apparently cannot convert an IStream COM object to this | |
# Powershell type. (See http://stackoverflow.com/a/9037299/223837 for | |
# details.) | |
# It turns out that .NET/CLR _can_ do this conversion. | |
# | |
# That is the reason why method FileUtil.WriteIStreamToFile(), below, | |
# takes an object, and casts it to an IStream, instead of directly |
Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.
- find a way how to run the same node version on both platforms
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
const signApp = async (context) => { | |
debug.enable('electron-osx-sign'); // enable debug flag | |
const opts = { | |
version: BuildConfig.electronVersion, // electron version | |
app: appDir, | |
platform: "darwin", | |
type: "distribution", | |
identity: xxx, |