As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
Ext.Viewport.add([ | |
{ | |
id : 'currentFPS', | |
xtype : 'component', | |
bottom: 0, | |
right : 0, | |
width : 50, | |
height: 50, | |
style : 'background-color: red; color: white;' | |
}, |
This is a general-purpose function to ask Yes/No questions in Bash, either with or without a default answer. It keeps repeating the question until it gets a valid answer.
function dedent(callSite, ...args) { | |
function format(str) { | |
let size = -1; | |
return str.replace(/\n(\s+)/g, (m, m1) => { | |
if (size < 0) | |
size = m1.replace(/\t/g, " ").length; |
osascript -e 'tell application "iOS Simulator" to quit' | |
osascript -e 'tell application "Simulator" to quit' | |
xcrun simctl erase all |
tell application "System Events" | |
tell security preferences | |
set require password to wake to true | |
end tell | |
end tell | |
activate application "ScreenSaverEngine" |
/// @name has_events | |
/// @author Tyler Benton | |
/// @description | |
/// Utility to list out elements that have event listeners. Their listeners will be listed out in the console. | |
/// @arg {string} target ["*"] | |
/// @note {10} - Only works if you copy this code and paste it in the chrome console. | |
/// @markup {js} | |
/// has_events(); // lists out all elements | |
/// has_events("a"); // lists out all anchor tags that have event listeners | |
function has_events(target){ |
#!/usr/bin/env ruby | |
require 'JSON' | |
device_types = JSON.parse `xcrun simctl list -j devicetypes` | |
runtimes = JSON.parse `xcrun simctl list -j runtimes` | |
devices = JSON.parse `xcrun simctl list -j devices` | |
devices['devices'].each do |runtime, runtime_devices| | |
runtime_devices.each do |device| |
#!/usr/bin/env node | |
console.log('yay gist') |
In this talk we will be all discussing the origin of the furry fandom. How we will thogheter create a new furry-in-js framework. We will going over how they have changed the current fandom world, our hearts and the js world in 5 very awesome minutes! This talk is to prove a point that stars mean nothing in this case.