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
{ | |
"config": { | |
"platform": { | |
"php": "8.0.28", | |
"ext-mongodb": "1.9.0RC1" | |
} | |
}, | |
"require": { | |
"mongodb/mongodb": "^1.4", | |
}, |
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
set Cap to (do shell script "ioreg -w0 -l | grep ExternalChargeCapable") | |
tell Cap to set {wallPower} to {last word of paragraph 1} | |
set CurrentVolume to output volume of (get volume settings) | |
if wallPower = "Yes" then | |
return 0 | |
else | |
set Cap to (do shell script "ioreg -wO -l | grep Capacity") | |
tell Cap to set {Available, Max} to {last word of paragraph 2, last word of paragraph 1} | |
set Pct to round (100 * (Max / Available)) |
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
<?php | |
function strip_markdown( $md = '', $options = [] ) { | |
// char to insert instead of stripped list leaders (default: '') | |
$options['listUnicodeChar'] = isset( $options['listUnicodeChar'] ) ? $options['listUnicodeChar'] : false; | |
// strip list leaders (default: true) | |
$options['stripListLeaders'] = isset( $options['stripListLeaders'] ) ? $options['stripListLeaders'] : true; | |
// support GitHub-Flavored Markdown (default: true) | |
$options['gfm'] = isset( $options['gfm'] ) ? $options['gfm'] : true; |
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 poptin, poptin_position, jQ224, all_poptins, test, query_string = new Object, | |
env = "app", | |
api_link = "https://display.popt.in", | |
cdn_server = "https://cdn.popt.in", | |
poptin_il_url = "https://www.poptin.co.il/", | |
poptin_com_url = "https://www.poptin.com/", | |
html_poptin_x_button = '<button type="button" id="closeXButton" onclick="closePoptinOnXclick(this);" class="close-x-button" style="text-align: right;display:none; margin-top: -2px;-webkit-appearance: none;cursor: pointer;background: 0 0;border: 0;float: right;padding:0pxfont-size: 20px;line-height: 0.5;color: #000;text-shadow: #fff 0px 0px 10px;filter: alpha(opacity=20);text-transform: none;overflow: visible;margin: 0;font-size:53px;line-height: 31px;z-index: 9999;position: relative;">×</button>', | |
html_poptin_skip_button = '<button type="button" id="closeXButton" onclick="closePoptinOnXclick(this);" class="close-x-button" style="text-align: right;display:none; margin-top: -2px;-webkit-appearance: none;padding: 5px;cursor |
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
# Slack integration | |
require_once "$IP/extensions/Slack/Slack.php"; | |
# Slack extension configuration options | |
$wgSlackWebhookURL = "https://hooks.slack.com/services/some-webhook-url" | |
$wgSlackUserName = "batman"; | |
$wgSlackChannel = "#recent-changes"; | |
$wgSlackIconURL = "http://i.picresize.com/images/2015/09/20/tdpsU.jpg"; | |
$wgSlackLinkUsers = true; |
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
(function(){ | |
if( | |
!(function(t){ | |
try { | |
window.localStorage.setItem(t,t); | |
window.localStorage.removeItem(t); | |
return true; | |
} catch(e) { | |
return false; | |
} |
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
SetEnvIf Origin ^(https?://.+\.yourdomain\.com(?::\d{1,5})?)$ CORS_ALLOW_ORIGIN=$1 | |
Header always set Access-Control-Allow-Origin %{CORS_ALLOW_ORIGIN}e env=CORS_ALLOW_ORIGIN | |
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT" | |
Header always set Access-Control-Max-Age "1000" | |
Header always set Access-Control-Allow-Headers "x-requested-with, Content-Type, origin, authorization, accept, client-security-token" | |
Header merge Vary "Origin" | |
RewriteEngine On | |
RewriteCond %{REQUEST_METHOD} OPTIONS |
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
13.58.0.0/15 | |
18.216.0.0/13 | |
23.20.0.0/14 | |
34.192.0.0/12 | |
34.224.0.0/12 | |
35.153.0.0/16 | |
35.168.0.0/13 | |
50.16.0.0/15 | |
50.19.0.0/16 | |
52.0.0.0/13 |
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
{"version":1,"keyboard":{"keys":[{"id":0,"legend":"~\n`","state":{"x":0,"y":0,"r":0,"rx":0,"ry":0,"w":1,"h":1,"x2":0,"y2":0,"w2":0,"h2":0},"row":0,"col":0,"keycodes":[{"id":"KC_ESC","fields":[]},{"id":"KC_GRV","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]}]},{"id":1,"legend":"!\n1","state":{"x":1,"y":0,"r":0,"rx":0,"ry":0,"w":1,"h":1,"x2":0,"y2":0,"w2":0,"h2":0},"row":0,"col":1,"keycodes":[{"id":"KC_1","fields":[]},{"id":"KC_F1","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"i |
NewerOlder