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
#!/usr/bin/env python | |
# Inspired by https://gist.github.com/jtangelder/e445e9a7f5e31c220be6 | |
# Python3 http.server for Single Page Application | |
import os | |
import socketserver | |
import multiprocessing as mp | |
import re | |
import urllib.parse |
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
{ | |
"privacy_policy": { | |
"eua_accepted_version": "1.2" | |
}, | |
"install_location": "/opt/JetBrains/Toolbox", | |
"shell_scripts": { | |
"enabled": true, | |
"location": "/opt/JetBrains/Toolbox/bin" | |
}, | |
"statistics": { |
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
#!/bin/sh | |
REPAST_SCRIPT='repastmulti.sh' | |
# Verify REPAST_SCRIPT script | |
[ ! -f $REPAST_SCRIPT ] &&\ | |
echo "repastmulti script '$REPAST_SCRIPT' not found" &&\ | |
exit 1 | |
sed -i '7cINSTALLATION=/EMS/repast' $REPAST_SCRIPT |
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
{ | |
"configurations": [ | |
{ | |
"name": "Win32", | |
"includePath": [ | |
"${workspaceFolder}/**", "${vcpkgRoot}/x86-windows/include" | |
], | |
"defines": [ | |
"_DEBUG", | |
"UNICODE", |
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
private void handleSignInResult(GoogleSignInResult result) { | |
Log.d(TAG, "handleSignInResult:" + result.isSuccess()); | |
if (result.isSuccess()) { | |
// Signed in successfully. | |
GoogleSignInAccount acct = result.getSignInAccount(); | |
String email = acct.getEmail(); | |
String[] split = s.split("@"); | |
String domain = split[1]; //This Will Give You The Domain After '@' | |
if(domain.equals("companyname.com")) | |
{ |
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
CREATE TABLE receiving( | |
receiving_date DATE NOT NULL, | |
diary_no INT NOT NULL, | |
no_of_letter VARCHAR(40) NOT NULL, | |
creation_date DATE NOT NULL, | |
file_no VARCHAR(40), | |
-- original_address VARCHAR(40), | |
from_dpt VARCHAR(40) NOT NULL, | |
to_dpt VARCHAR(40) NOT NULL, | |
subject VARCHAR(255) NOT NULL, |
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
<script> | |
function customCalendar(year, month) { | |
month--; | |
let d = new Date(year, month); | |
let firstDay = d.getDay(); | |
let date = 1, dateIter = 1; | |
var table = "<table>"; | |
table += "<tr><th colspan=14>" + d.toLocaleString('en-us', { month: 'long' }) + " " + d.getFullYear() + "</th></tr>"; | |
table += "<tr>"; |