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 java.io.BufferedInputStream; | |
import java.io.BufferedReader; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.Channels; |
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
//============================================================================ | |
// Name : MadProgression.cpp | |
// Author : magicsih | |
// Version : | |
// Copyright : | |
// Description : Mad Progression in C++, Ansi-style | |
//============================================================================ | |
#include <iostream> | |
#include <fstream> |
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
//============================================================================ | |
// Name : DogAndChick.cpp | |
// Author : magicsih | |
// Version : | |
// Copyright : | |
// Description : How many dogs and chicks in C++, Ansi-style | |
//============================================================================ | |
#include <iostream> | |
#include <fstream> |
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
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
using namespace std; | |
void sort_meetings_order_by_finish(int numberOfMeetings, int **meetings); | |
int main() | |
{ |
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
#include <ctime> | |
#include <stdio.h> | |
#include <iostream> | |
using namespace std; | |
bool is_leap_year(int year); | |
int get_wday_january_first(int yday, int wday); | |
int main() |
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.Security.Cryptography; | |
using System.Text; | |
namespace AesExample | |
{ | |
class Program | |
{ | |
private const string ORIGINAL = "this is some data to encrypt"; | |
private const string SAMPLE_KEY = "gCjK+DZ/GCYbKIGiAt1qCA=="; | |
private const string SAMPLE_IV = "47l5QsSe1POo31adQ/u7nQ=="; |
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 CustomProxyServlet extends ProxyServlet { | |
private final Map<String, FilterableHost> filterMap; | |
public CustomProxyServlet() { | |
this.filterMap = new HashMap<>(); | |
} | |
public CustomProxyServlet referHostFilterByUrl(String fromUrl, String toUrl) { | |
if(filterMap.containsKey(fromUrl)) { |
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 System.Runtime.InteropServices; | |
using System.Threading; | |
namespace WindowsIdleTime | |
{ | |
class Program | |
{ | |
[DllImport("user32.dll", SetLastError = true)] | |
static extern uint SendInput(uint nInputs, ref INPUT pInputs, int cbSize); |
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
@RequestMapping(path = "/scriptingonly/list", method = RequestMethod.GET) | |
public DataTable<Script> getScriptingOnlyList(@PathVariable("gameCode") String gameCode, @PathVariable("deviceOs") String deviceOs, @Valid DataTableParameter parameters, @RequestParam(name="search", required=false) String searchText) { | |
LOG.debug("GameCode:{} DeviceOs:{} DataTableParameter:{} SearchText:{}", gameCode, deviceOs, parameters, searchText); | |
DataTable<Script> scriptDataTable = scriptService.getScriptDataTable(gameCode, deviceOs, parameters, searchText); | |
return scriptDataTable; | |
} |
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
// Default URL for triggering event grid function in the local environment. | |
// http://localhost:7071/runtime/webhooks/EventGrid?functionName={functionname} | |
using System; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Host; | |
using Microsoft.Azure.EventGrid.Models; | |
using Microsoft.Azure.WebJobs.Extensions.EventGrid; | |
using Microsoft.Extensions.Logging; | |
using Newtonsoft.Json.Linq; | |
using System.IO; |
OlderNewer