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
| <profiles> | |
| <profile> | |
| <id>CXF</id> | |
| <!-- To use Metro by default, move this activation element to its profile below --> | |
| <activation> | |
| <activeByDefault>true</activeByDefault> | |
| </activation> | |
| <properties> | |
| <cxf.version>3.0.1</cxf.version> |
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
| fn main() { | |
| use std::fs::File; | |
| use std::io::prelude::*; | |
| use std::fmt; | |
| struct Info { | |
| name: String, | |
| age: i32, | |
| rating: i32, | |
| } |
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
Show hidden characters
| { | |
| "cmd": ["dub", "run"], | |
| "working_dir": "${project_path:${folder}}", | |
| "file_regex": "^(.*?)\\(([0-9]+),?([0-9]+)?\\): (.*)", | |
| "selector": "source.d" | |
| } |
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 main | |
| import ( | |
| "database/sql" | |
| "encoding/json" | |
| "errors" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "time" |
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
| #! /bin/sh | |
| if [ $# -eq 0 ] ; then | |
| echo "Usage: repoName" | |
| exit 1 | |
| fi | |
| # git base folder | |
| gitFolder="/volume1/git/" |
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
| /** | |
| * To enable web services of Apache CXF | |
| */ | |
| @Configuration | |
| @ImportResource({"classpath:META-INF/cxf/cxf.xml"}) | |
| protected static class CXFConfiguration { | |
| @Autowired | |
| private Bus cxfBus; | |
| @Bean |
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 std.stdio, std.concurrency; | |
| import core.thread; | |
| alias Thread.sleep sleep; | |
| void ping() { | |
| Tid pong; | |
| try { | |
| for(;;){ | |
| receive( | |
| (string s){ |
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 std.stdio, std.concurrency; | |
| void myActor() { | |
| try { | |
| for(;;){ | |
| receive( | |
| (int i){ writeln("Received integer: ",i); } | |
| ); | |
| } | |
| }catch(Exception e){ |
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 loc = window.location, new_uri; | |
| if (loc.protocol === "https:") { | |
| new_uri = "wss:"; | |
| } else { | |
| new_uri = "ws:"; | |
| } | |
| new_uri += "//" + loc.host; | |
| var ws_location += loc.pathname + "/wsmessage"; | |
| var client = ngstomp(ws_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 tk.aalkhodiry.concurrent.utils; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.scheduling.TaskScheduler; | |
| import org.springframework.scheduling.Trigger; | |
| import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler; | |
| import javax.annotation.PostConstruct; | |
| import java.util.Date; |