# Anchor
click_link 'Save'
# Button
click_button 'awesome'
# Both above
This file contains hidden or 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
#!/bin/bash | |
# Author: Igor Putina | |
# Email: <igorputina@hey.com> | |
# Email: <iputina@mixbook.com> | |
# This script requires a file named 'filelist.txt' in the same directory, containing one image URL per line. | |
# It is designed to be fault-tolerant, attempting to download each file up to 5 times if the initial attempt fails. | |
# Downloads are saved to a './download' directory, which will be created if it doesn't exist. | |
# The script checks if a file already exists before downloading to avoid redundancy. |
This file contains hidden or 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
/** | |
* Squarespace Export to Clean HTML Converter | |
* | |
* Author: Igor Putina | |
* Email: <igorputina@hey.com> | |
* Email: <iputina@mixbook.com> | |
* | |
* This script processes a Squarespace export XML file and converts it into clean HTML | |
* | |
* Dependencies: |
This file contains hidden or 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
65892e8d2a8aa4755424230ddffe97328583a332 |
This file contains hidden or 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
#!/bin/bash | |
# created for installing i3-gaps over Ubuntu distros | |
# run with sudo | |
#------------------------------------------------------------------------------- | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update -q | |
apt-get upgrade -q -y |
This file contains hidden or 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).on("click", "[data-href]", function(e) { | |
return location.href = $(this).attr('data-href'); | |
}); |
This file contains hidden or 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 type TouchEventMock = {clientX: number; clientY: number}; | |
export type TouchEventMockObject = {touches?: TouchEventMock[]; changedTouches?: TouchEventMock[]}; | |
function createClientXY(x: number, y: number): TouchEventMock { | |
return {clientX: x, clientY: y}; | |
} | |
export function createStartTouchEventObject(x: number = 0, y: number = 0): TouchEventMockObject { | |
return {touches: [createClientXY(x, y)]}; | |
} |
This file contains hidden or 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
// Simpler Backbone model defaults in TypeScript | |
export class Person extends Backbone.Model { | |
constructor(options?: any) { | |
var defaults = { | |
name: 'Nameless', | |
occupation: 'Unemployed' | |
} | |
super(_.defaults(options, defaults)); |
This file contains hidden or 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
<div class="image-container"> | |
<img src="some/image.jpg" asset has-video="true" video="https://vimeo.com/232439739" /> | |
</div> |
This file contains hidden or 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
/* Make Webpack and Backbone play nice */ | |
const path = require('path'); | |
const webpack = require('webpack'); | |
module.exports = { | |
entry: { | |
extract: './src/main.js' | |
}, | |
output: { |
NewerOlder