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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>How to automatically create heading anchors for links</title> | |
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous"> | |
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/gh/cferdinandi/smooth-scroll@14/dist/smooth-scroll.polyfills.min.js"></script> | |
<style> | |
.anchorBtn { | |
margin-left: 15px; |
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
var array = { | |
"d_act_group": "18-24", | |
"declare": "2", | |
"eng_name":"" | |
} | |
function simulateInput(keyPairValue){ | |
for (var index in keyPairValue){ | |
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
$textfile = $file_speed2o365 | |
if (Test-Path $textfile) | |
{ | |
Remove-Item $textfile | |
} | |
foreach($url in $o365_URLs) { | |
echo "" >> $textfile |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Typing text like subtitle/caption</title> | |
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> | |
<script src="../third-party/typed.js-2.0.9/lib/typed.js"></script> | |
<script> | |
$(document).ready(function() { | |
var plainText = 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
// calculate the 2nd and 4th sunday | |
// https://stackoverflow.com/questions/21514245/find-second-sunday-of-every-may-depending-on-the-year | |
function GetNextEvenDateOfSunday(asAtDate){ | |
// remove time from Date | |
asAtDate.setHours(0); | |
asAtDate.setMinutes(0); | |
asAtDate.setSeconds(0); | |
var currentYear = asAtDate.getFullYear(); |
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
package com; | |
import java.util.*; | |
import java.text.*; | |
import org.apache.http.HttpEntity; | |
import org.apache.http.util.EntityUtils; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpPost; |
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
:: initialize currenct date time variable | |
for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set dt=%%a | |
set YYYY=%dt:~0,4% | |
set MM=%dt:~4,2% | |
set DD=%dt:~6,2% | |
set HH=%dt:~8,2% | |
set Min=%dt:~10,2% | |
set Sec=%dt:~12,2% | |
:: set stamp=%YYYY%-%MM%-%DD%_%HH%-%Min%-%Sec% |
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
// check composer version | |
composer --version | |
// add/install resource, the added resource will append to the composer.json | |
// e.g | |
composer require phpoffice/phpspreadsheet | |
composer require soundasleep/html2text | |
// install the resource with a specified version | |
composer require phpoffice/phpspreadsheet:1.8.2 |
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
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
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
eyJwcmV2aW91cyI6e30sInZlcnNpb24iOjEuMywiZmVhdHVyZXMiOnsibG9jYXRpb24iOnsicm9vbSI6dHJ1ZSwib3V0c2lkZSI6dHJ1ZSwid29ybGQiOnRydWV9fSwic3RvcmVzIjp7Indvb2QiOjExNDU2LCJmdXIiOjE2ODIuNSwiYmFpdCI6OTU3LCJtZWF0IjoxNjU5OS41LCJzY2FsZXMiOjI1LCJ0ZWV0aCI6MTAwLCJjbG90aCI6MSwiY2hhcm0iOjIsImxlYXRoZXIiOjI1NzksImN1cmVkIG1lYXQiOjExMTgsInRvcmNoIjoxLCJ3YXRlcnNraW4iOjEsImJvbmUgc3BlYXIiOjIsInJ1Y2tzYWNrIjoxLCJsIGFybW91ciI6MSwiY29tcGFzcyI6MSwiaXJvbiI6MTUsInN0ZWVsIjoxNSwibWVkaWNpbmUiOjgsImNhc2siOjF9LCJjaGFyYWN0ZXIiOnsic3RhcnZlZCI6NywicGVya3MiOnsic3RlYWx0aHkiOnRydWUsImJhcmJhcmlhbiI6dHJ1ZSwic2NvdXQiOnRydWV9fSwiaW5jb21lIjp7ImdhdGhlcmVyIjp7ImRlbGF5IjoxMCwic3RvcmVzIjp7Indvb2QiOjI3fSwidGltZUxlZnQiOjF9LCJidWlsZGVyIjp7ImRlbGF5IjoxMCwic3RvcmVzIjp7Indvb2QiOjJ9LCJ0aW1lTGVmdCI6MX0sImh1bnRlciI6eyJkZWxheSI6MTAsInN0b3JlcyI6eyJmdXIiOjIwLCJtZWF0IjoyMH0sInRpbWVMZWZ0Ijo2fSwidHJhcHBlciI6eyJkZWxheSI6MTAsInN0b3JlcyI6eyJtZWF0IjotMSwiYmFpdCI6MX0sInRpbWVMZWZ0Ijo2fSwidGFubmVyIjp7ImRlbGF5IjoxMCwic3RvcmVzIjp7ImZ1ciI6LTE1LCJsZWF0aGVyIjozfSwidGltZUxlZnQiOjEwfSwiY2hhcmN1 |
OlderNewer