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
#include <type_traits> | |
#include <cocos2d.h> | |
#pragma once | |
//------------------------------------------------------------------------------ | |
/// Transition adapter that pops current scene with transition passed as an argument. | |
/// | |
/// Example: |
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft
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
/// So, lets talk about AppKit. The way this function works is by passing a delegate (which is required | |
/// to be a NSObject, but here is typed as Any) which turns out to be the same type as `self`, a Selector, | |
/// which in this case is `_something:didSomething:soContinue:` (not kidding), and some "contextInfo" | |
/// (which is actually a block). While all of these arguments appear to be optional, passing nil through | |
/// to the function call that `shouldCloseSelector` defines, or passing nil to super, will cause the app | |
/// to crash. So then we need to call the function on `delegate` defined by `shouldCloseSelector`. | |
/// | |
/// According to the documentation the function signature for this selector looks like this: | |
/// - (void)document:(NSDocument *)doc shouldClose:(BOOL)shouldClose contextInfo:(void *)contextInfo | |
/// |
- Download the docset index XML.
- Find the docset you want (there are some with URL https://apple.com/none.dmg; ignore them - you will find them again further down the file with a working URL).
- Download the dmg. It's probably around a gigabyte or so.
- "Install" the .pkg file somewhere on your disk. If you don't trust the installer, do it manually:
- Find the largest file, named Payload, and extract it using The Unarchiver.
- This creates a new, even larger file, probably named Payload-1.
- Extract Payload-1 using The Unarchiver.
- After many minutes of extracting, we have our .docset file.
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
#!/bin/sh | |
# Script: gif-optimize.sh | |
# Author: Rob Baier | |
# Description: Script used to optimize animated GIF files. | |
# Dependencies: Gifsicle (https://github.com/kohler/gifsicle) | |
# Environment: Tested on MacOS 10.12. Other *nix environments may require some tweaking. | |
# Usage: ./gif-optimize.sh input-filename.gif | |
# Helper function to convert bytes into a human-readable format |
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
-- "extension.lua" | |
-- VLC Extension basic structure (template): ---------------- | |
-- Install | |
-- Windows: %APPDATA%/vlc/lua/extensions/basic.lua | |
-- Mac: /Applications/VLC/.../lua/extensions/basic.lua | |
-- Linux: ~/.local/share/vlc/lua/extensions/basic.lua | |
function descriptor() | |
return { |
- Do you have an Github account ? If not create one.
- Install required tools
- Latest Git Client
- gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
NewerOlder