If you need to change tawk's locale dynamically (i.e. in SPA), here is the code I use. There is a small issue, though - everytime tawk adds new div to body and there is no way to correctly detect it and remove (ids are dynamic and there is no classname). However, as far as it is hidden, this should not be a problem.
With expo-sqlite
it's not possible to execute few depending statements inside single transaction - db.transaction
does not work with async/promise and tx.executeSql
just enqueues sql statement but does not execute it.
Database
class has two methods - execute
(to execute single statement without transaction) and transaction(cb)
to execute few statements inside a transaction
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
#Region ;**** Directives created by AutoIt3Wrapper_GUI **** | |
#AutoIt3Wrapper_Compression=0 | |
#AutoIt3Wrapper_Res_HiDpi=Y | |
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** | |
#include <File.au3> | |
;Function for getting HWND from PID | |
Func _GetHwndFromPID($PID, $title) | |
$hwnd = 0 |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
line1: "Say Hi!", | |
line2: "Say Yeah!", | |
changeAction(newAction) { | |
switch (newAction) { | |
case "1": |
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 Ember from 'ember'; | |
import EmberObject, { set } from '@ember/object'; | |
import ArrayProxy from '@ember/array/proxy'; | |
import { Promise, resolve, all } from 'rsvp'; | |
const section = EmberObject.create(); | |
const log = ArrayProxy.create({ content: [] }); | |
export default Ember.Controller.extend({ | |
appName: 'Question 59529650', |
This method decodes string that was encoded by PHP's urlencode
method using windows-1251
encoding (i.e.
php -r "echo urlencode(iconv('utf8', 'windows-1251', 'Что-то с чем-то'));"
)
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
export default function(t) { | |
return new Promise(resolve => { | |
setTimeout(resolve, t); | |
}); | |
} |
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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
/** | |
* Put this code in <head> tag. 'UA-XXXXX-Y' should be replaced with the property ID (also called the "tracking ID") | |
* of the Google Analytics property you wish to track. Also you may wish to change text and remove | |
* `ga('set', 'anonymizeIp', true);` line from `initGac` function. Style user notice with css. | |
* | |
* Please note that when user clicks "Disable cookies" this script removes google analytics' cookies and adds | |
* cookie with name `_gac_consent_`. It doesn't store any user data, just 'allow' or 'disable' string. This is | |
* needed to store user's answer. You may want to inform users about that in your Cookie Policy. | |
*/ |
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 Ember from 'ember'; | |
export default Ember.Component.extend({ | |
classNames: ["person-card"] | |
}); |
NewerOlder