Skip to content

Instantly share code, notes, and snippets.

View samgreen's full-sized avatar

Sam Green samgreen

  • San Francisco, CA
View GitHub Profile
@samgreen
samgreen / macos_services_glossary.md
Created July 24, 2025 06:38
A description of all the first party services in OS X (Sequoia) 15.9

🖥️ macOS System Services Glossary (Grouped)

🧩 Core System & GUI Services

Label Description
com.apple.coreservicesd Manages foundational macOS services like Launch Services and icon handling.
com.apple.WindowServer Composes and displays all windows and UI elements; the graphical core of macOS.
com.apple.corebrightnessd Adjusts screen brightness based on ambient light and user preferences.
com.apple.touchbarserver Manages the display and interaction of the Touch Bar on supported MacBook Pros.

Three.JS Cubes

➜ dev ./lmbr_waf.sh configure
[WAF] Executing 'configure'
Running SetupAssistant.exe ...
--- Lumberyard Setup Assistant ---
Lumberyard Setup Assistant: Reading configuration from: /Users/null/Downloads/lumberyard-1.3-224027-mac/dev/SetupAssistantConfig.json
Lumberyard Setup Assistant: Reading configuration from: /Users/null/Downloads/lumberyard-1.3-224027-mac/dev/Bin64/SetupAssistantConfig.json
SDK location: /Users/null/Downloads/lumberyard-1.3-224027-mac/dev
Third-party location: /Users/null/Downloads/lumberyard-1.3-224027-mac/3rdParty
Capabilities available, [x] enabled - [ ] disabled:
[ ] rungame - Run your game project
Verifying I am +samgreen on my passcard. https://onename.com/samgreen
function maxInArray(numbers) {
var max = -1;
for (var i = 0; i < numbers.length; i++) {
if (numbers[i] > max) {
max = numbers[i];
}
}
return max
}
<UIView: 0xa5fac50; frame = (0 0; 768 1024); autoresize = W+H; layer = <CALayer: 0xa529100>>
| <UIView: 0xa7d2a80; frame = (0 0; 768 1024); autoresize = W+H; layer = <CALayer: 0xa7d2ae0>>
| | <UIView: 0xa7d2880; frame = (0 0; 0 0); layer = <CALayer: 0xa7d28e0>>
| | | <_UIBackdropView: 0xa7d2b90; frame = (0 0; 0 0); opaque = NO; layer = <_UIBackdropViewLayer: 0xa7d2f70>>
| | | | <_UIBackdropContentView: 0xa7d3a00; frame = (0 0; 0 0); opaque = NO; autoresize = W+H; layer = <CALayer: 0xa7d3a60>>
| | | | | <UIScrollView: 0xa7d35b0; frame = (0 0; 0 0); gestureRecognizers = <NSArray: 0xa7d3830>; layer = <CALayer: 0xa7d3780>; contentOffset: {0, 0}>
| | | | | | <UIActivityGroupView: 0xa7d3c20; frame = (0 0; 0 0); layer = <CALayer: 0xa7d3cf0>>
| | | | | | | <UIView: 0xa7d3ec0; frame = (0 0; 0 0); tag = 1; layer = <CALayer: 0xa7d3f20>>
| | | | | | | <UICollectionViewControllerWrapperView: 0xa7d0b80; frame = (0 0; 76
@samgreen
samgreen / gist:8428912
Created January 15, 2014 00:56
Escaping with the DOM!
// This will use the browser's ability to determine if text needs to be escaped
function escapeHtml(untrustedString) {
// Create a new div
var div = document.createElement('div');
// Create a new text node (using innerHTML would give us the same problem).
var node = document.createTextNode(str)
// Append the text node to the div
div.appendChild(node);
// Return the properly escaped HTML
{
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"default_extend_env":
{
"PATH": "/opt/boxen/rbenv/shims:/opt/boxen/rbenv/bin:{PATH}"
},
"draw_minimap_border": true,
"font_size": 12,
"highlight_line": true,
"ignored_packages":
@samgreen
samgreen / gist:8244333
Created January 3, 2014 19:08
Padlet Sublime Text Menu
[
{
"caption":"Padlet",
"children":[
{
"caption":"Dev Log",
"command":"exec",
"args":{
"cmd":[
"tail",
if (typeof console == "undefined") {
window.console = {
log: function () {}
};
}
console.log("whatever");