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
requirejs: { | |
amilia: { | |
options: { | |
baseUrl:'../app/', | |
name:'main', | |
mainConfigFile: "../app/config_amilia.js", | |
out: "../app/build/debug/require_amilia.js" | |
} | |
}, | |
oodili: { |
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 titleLabel = Titanium.UI.createLabel({ | |
height:'18dp', | |
top:'10dp', | |
left:'50dp', | |
text:"My title", | |
textAlign:'center', | |
font:{ | |
fontWeight:'semibold', | |
fontSize:'13dp' | |
}, |
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 UserVoice = require('uservoice'); | |
var uservoiceRequest = new UserVoice(CONSUMER_KEY, CONSUMER_SECRET, ACCOUNT_SUBDOMAIN); | |
var data = { | |
email: contact.email, | |
ticket: { | |
subject:'Subject', | |
message: "Message", | |
referrer: 'refferer' |
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
angular.module('recorder', []) | |
.controller('MainCtrl', ['Storage', '$scope', '$timeout', function(Storage, $scope, $timeout) { | |
$scope.storage = Storage; | |
$scope.$on('valueChanged', function (evt, selectors) { | |
$scope.$apply(function() { | |
$scope.selectors = selectors; | |
}); | |
}); |
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
const loginToTwitter = async (page, username, password) => { | |
await page.goto('https://twitter.com/login'); | |
await page.waitForSelector('input[autocomplete="username"][type="text"]'); | |
const usernameInput = await page.$('input[autocomplete="username"][type="text"]'); | |
// Type the username slowly | |
for (let i = 0; i < username.length; i++) { | |
await usernameInput.type(username[i], { delay: 100 }); |