This is the reference point. All the other options are based off this.
|-- app
| |-- controllers
| | |-- admin
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| /* The API controller | |
| Exports 3 methods: | |
| * post - Creates a new thread | |
| * list - Returns a list of threads | |
| * show - Displays a thread and its posts | |
| */ | |
| var Thread = require('../models/thread.js'); | |
| var Post = require('../models/post.js'); |
| @implementation MySharedThing | |
| + (id)sharedInstance | |
| { | |
| DEFINE_SHARED_INSTANCE_USING_BLOCK(^{ | |
| return [[self alloc] init]; | |
| }); | |
| } | |
| @end |
| <?php die('This file is not really here!'); | |
| /** | |
| * ------------- DO NOT UPLOAD THIS FILE TO LIVE SERVER --------------------- | |
| * | |
| * Implements code completion for CodeIgniter in phpStorm | |
| * phpStorm indexes all class constructs, so if this file is in the project it will be loaded. | |
| * ------------------------------------------------------------------- | |
| * Drop the following file into a CI project in phpStorm | |
| * You can put it in the project root and phpStorm will load it. |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages and install them manually as needed.
| import sys | |
| import threading | |
| import Queue | |
| import wx | |
| _noTimeoutDefault = object() | |
| def defer( | |
| returnToFunction, | |
| function, |
| #!/usr/bin/env python | |
| # | |
| # cocoa_keypress_monitor.py | |
| # Copyright © 2016 Bjarte Johansen <[email protected]> | |
| # | |
| # The MIT License (MIT) | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining | |
| # a copy of this software and associated documentation files (the | |
| # “Software”), to deal in the Software without restriction, including |
| """PyObjC keylogger for Python | |
| by ljos https://github.com/ljos | |
| """ | |
| from Cocoa import * | |
| from Foundation import * | |
| from PyObjCTools import AppHelper | |
| class AppDelegate(NSObject): | |
| def applicationDidFinishLaunching_(self, aNotification): |
| # xcode-build-bump.sh | |
| # @desc Auto-increment the build number every time the project is run. | |
| # @usage | |
| # 1. Select: your Target in Xcode | |
| # 2. Select: Build Phases Tab | |
| # 3. Select: Add Build Phase -> Add Run Script | |
| # 4. Paste code below in to new "Run Script" section | |
| # 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
| # 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |