Skip to content

Instantly share code, notes, and snippets.

View rkusa's full-sized avatar
💭
Busy with non-Github stuff. Very slow to respond.

Markus Ast rkusa

💭
Busy with non-Github stuff. Very slow to respond.
View GitHub Profile
<!doctype html>
<html lang="en">
<head>
...
</head>
<body>
<div id="your-id">
</div>
<template id="your-template-id">
function waitForXHR(selenium, callback) {
selenium.execute(function() {
return window.$.active === 0
}, function(err, res) {
if (res.value) callback()
else setTimeout(waitForXHR.bind(undefined, browser, callback), 500)
})
}
@rkusa
rkusa / swac-changelog.md
Last active December 16, 2015 08:49
rkusa/swac changelog
wsr_snapshot(\''.$wpdir->link_detail_info->url.'\', \'O020SbL697uY\', \'s\');
AccessDeniedInvalid according to Policy: Policy Condition failed: ["eq", "$key", "downloads/brainafk/BrainafkPhoneToolkit/C:\u000Cakepath\r2-binaries.zip"]1DF069746D6A58D64Z+SO1mNq0TN587kZrPs1xNpCxYDBs8u9gr1BMBEw0LjM5kLbhOHE2RV5YeXUtm1
<toolkit:PickerBox ItemsSource="{Binding FirstItems}" SelectedItem="{Binding FirstSelected}"
Foreground="Black" FontSize="36"
IsApplicationBarVisible="True" />
MainListBox.ItemContainerStyle.Setters.Add(new Setter(ListBoxItem.OpacityProperty, 0));
private void ItemContainerGenerator_ItemsChanged(object sender, ItemsChangedEventArgs e)
{
Dispatcher.BeginInvoke(new ItemAddedDelegate(i =>
{
var item = (ListBoxItem) MainListBox.ItemContainerGenerator.ContainerFromIndex(i - 1);
if (item == null)
return;
VisualStateManager.GoToState(item, "BeforeLoaded", false);
item.Opacity = 1.0;
MainListBox.ItemContainerGenerator.ItemsChanged += ItemContainerGenerator_ItemsChanged;
<Style TargetType="controls:PickerBox">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="controls:PickerBox">
<StackPanel>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="ButtonStates">
<VisualStateGroup.Transitions>
<VisualTransition GeneratedDuration="0:0:0.1"/>
</VisualStateGroup.Transitions>