OSX's man utility has custom patches to allow finding man pages from installed Xcode SDKs.
#ifdef __APPLE__
xcselect_manpaths *xcp;
const char *path;
unsigned i, count;
// TODO: pass something for sdkname
xcp = xcselect_get_manpaths(NULL);| /*jslint plusplus: true, vars: true, indent: 2 */ | |
| /* | |
| convertPointFromPageToNode(element, event.pageX, event.pageY) -> {x, y} | |
| returns coordinate in element's local coordinate system (works properly with css transforms without perspective projection) | |
| convertPointFromNodeToPage(element, offsetX, offsetY) -> {x, y} | |
| returns coordinate in window's coordinate system (works properly with css transforms without perspective projection) | |
| */ |
| /* | |
| * This work is free. You can redistribute it and/or modify it under the | |
| * terms of the Do What The Fuck You Want To Public License, Version 2, | |
| * as published by Sam Hocevar. See the COPYING file for more details. | |
| */ | |
| /* | |
| * Easing Functions - inspired from http://gizma.com/easing/ | |
| * only considering the t value for the range [0, 1] => [0, 1] | |
| */ | |
| EasingFunctions = { |
| # Hard Reset SVN working-copy back to checkout (records a diff first). | |
| alias svn.HardReset='read -p "destroy ALL local changes?[y/N]" && [[ $REPLY =~ ^[yY] ]] && svn diff &> $(mktemp | tee -a "${HOME}/.svnReset.log") && svn revert -R . && rm -rf $(awk -f <(echo "/^?/{print $2}") <(svn status );)' |
OSX's man utility has custom patches to allow finding man pages from installed Xcode SDKs.
#ifdef __APPLE__
xcselect_manpaths *xcp;
const char *path;
unsigned i, count;
// TODO: pass something for sdkname
xcp = xcselect_get_manpaths(NULL);| When I developed an app for ios by phonegap, I had a trouble in changing the <input> input cursor color. | |
| but now, there is a solution for it: | |
| --------------- | |
| <style> | |
| input { | |
| color: rgb(60, 0, 248); /* change [input cursor color] by this*/ | |
| text-shadow: 0px 0px 0px #D60B0B; /* change [input font] by this*/ | |
| -webkit-text-fill-color: transparent; |
| #!/usr/bin/env python | |
| import json | |
| import sys | |
| try: # Py3 | |
| from urllib.parse import urlencode | |
| from urllib.request import urlopen | |
| from urllib.request import Request | |
| except ImportError: # Py2 |
| function setAppBarColors(brandColorHex, brandColorInactiveHex) { | |
| // Detect if the Windows namespace exists in the global object | |
| if (typeof Windows !== 'undefined') { | |
| var brandColor = hexStrToRGBA(brandColorHex); | |
| var brandColorInactive = hexStrToRGBA(brandColorInactiveHex); | |
| // Get a reference to the App Title Bar | |
| var appTitleBar = Windows.UI.ViewManagement.ApplicationView.getForCurrentView().titleBar; | |
| var black = hexStrToRGBA('#000'); | |
| var white = hexStrToRGBA('#FFF'); |
| /** | |
| * Copyright 2017 Google Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * https://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| // UPDATE: In 2023, you should probably stop using this! The narrow version of Safari that | |
| // does not support `nomodule` is probably not being used anywhere. The code below is left | |
| // for posterity. | |
| /** | |
| * Safari 10.1 supports modules, but does not support the `nomodule` attribute - it will | |
| * load <script nomodule> anyway. This snippet solve this problem, but only for script | |
| * tags that load external code, e.g.: <script nomodule src="nomodule.js"></script> | |
| * | |
| * Again: this will **not** prevent inline script, e.g.: |