View cloudSettings
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
{"lastUpload":"2018-03-14T07:06:28.319Z","extensionVersion":"v2.9.0"} |
View add-voice.ps
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
$sourcePath = 'HKLM:\software\Microsoft\Speech_OneCore\Voices\Tokens' #Where the OneCore voices live | |
$destinationPath = 'HKLM:\SOFTWARE\Microsoft\Speech\Voices\Tokens' #For 64-bit apps | |
$destinationPath2 = 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\SPEECH\Voices\Tokens' #For 32-bit apps | |
cd $destinationPath | |
$listVoices = Get-ChildItem $sourcePath | |
foreach($voice in $listVoices) | |
{ | |
$source = $voice.PSPath #Get the path of this voices key | |
copy -Path $source -Destination $destinationPath -Recurse | |
copy -Path $source -Destination $destinationPath2 -Recurse |
View search.js
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
$(document).ready(function () { | |
$("#id_thehien").on('change', function () { | |
var optionId = $('option:selected', this).attr('id'); | |
if (optionId === 'all') { | |
reset_vl(); | |
hide_lun(); | |
$("#class").hide(); | |
} |
View backup.js
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
$( document ).ready(function() { | |
$("#id_thehien").on('change', function() { | |
var optionId = $('option:selected', this).attr('id'); | |
if(optionId === 'all') { | |
reset_vl(); | |
hide_lun(); | |
$("#class").hide(); | |
} |
View speech viet.js
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 langList = document.getElementById('langList'); | |
if ('speechSynthesis' in window) { | |
// Start an html table for languages details | |
var text = '<table border=1><tr><th>Default<th>Language<th>Local<th>Name<th>URI</tr>'; | |
// Get voices; add to table markup | |
function loadVoices() { | |
var voices = speechSynthesis.getVoices(); | |
voices.forEach(function(voice, i) { | |
// Add all details to table |
View self-intro.ps1
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
Add-Type -AssemblyName System.speech | Out-Null | |
$spk = new-object System.Speech.Synthesis.SpeechSynthesizer | |
$voices = $spk.GetInstalledVoices().voiceinfo | |
foreach($voice in $voices){$spk.SelectVoice($voice.Name);$spk.Speak($voice.name)} |
View home.ts
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
// STEP 1: | |
// {{ install these command in CMD, turn off adb.exe process if you already run, turn off in Window Task Manager }} | |
// {{ Open Administrator CMD, Must be Administrator}} | |
// ionic cordova plugin add cordova-plugin-android-permissions | |
// ionic cordova plugin add cordova-plugin-sms | |
// yarn add @ionic-native/android-permissions | |
// yarn | |
// {{ run last command to check all node_modules }} | |
// STEP 2: add 'AndroidPermissions' in app.module.ts 'providers' |
View api.ts
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
cssVariable: string = ` | |
#header, #breadcrumb-wrapper, #footer,#mobile-bottom-navigation, #back-to-top { | |
display:none; | |
} | |
body { | |
padding-bottom: 80px; | |
padding-top: 1px; | |
} | |
` |
View getHTML.ts
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
getHTML() { | |
return this.http.request('GET','api/account/login',{observe:'response',responseType:'text'}) | |
.map((res:HttpResponse<any>) => { console.log(res.body); return res.body }) | |
} |
View selenium-js-hover-btn.ts
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
async login(driver:WebDriver) { | |
await driver.get('https://tiki.vn'); | |
let loginElement = await driver.findElement(By.id('header-user')); | |
let strJavaScript = "var element = arguments[0];" | |
+ "var mouseEventObj = document.createEvent('MouseEvents');" | |
+ "mouseEventObj.initEvent( 'mouseover', true, true );" | |
+ "element.dispatchEvent(mouseEventObj);"; | |
await driver.executeScript(strJavaScript, loginElement); | |
} |
OlderNewer