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);| 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'); |
| #!/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 |
| 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; |
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);| # 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 );)' |
| /* | |
| * 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 = { |
| /*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) | |
| */ |