This file contains hidden or 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
The following prompts were some of the prompts I've used along the way in my process, separated by "---", | |
anything in angle brackets <like this>, you fill in the appropriate details. | |
Note: For sections that are applying rules to a resume and a job description, type "Apply Rule <number>" like "Apply Rule 1" to the data mentioned. | |
--- | |
Please analyze this job description for any potential red flags that might indicate the employer is not age-friendly. Focus on specific details within the description that could suggest a preference for younger candidates. Use the following format: | |
Job Description Analysis: [Job Title] at [Company] | |
Potential Red Flags for Age-Friendliness |
This file contains hidden or 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
# Usage: makeOpenCV <filename.cpp> | |
makeOpenCV(){ | |
g++ -ggdb `pkg-config --cflags --libs opencv` -stdlib=libc++ $1 -o /tmp/test $ | |
} |
This file contains hidden or 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
// Posted this example because I couldn't get the example from the GPUImage page working directly. | |
let stillImageSource = GPUImagePicture() | |
let stillImageFilter = GPUImageSepiaFilter() | |
stillImageSource.addTarget(stillImageFilter) | |
stillImageFilter.useNextFrameForImageCapture() | |
let destImage = stillImageFilter.imageByFilteringImage(srcImage) |
This file contains hidden or 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
import Foundation | |
extension UIImage { | |
func blur() -> UIImage { | |
let boxBlur = GPUImageBoxBlurFilter() | |
boxBlur.blurRadiusInPixels = 4.0 | |
return boxBlur.imageByFilteringImage(self) | |
} | |
func canny() -> UIImage { |
This file contains hidden or 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 UIView { | |
func snapshot() -> UIImage { | |
UIGraphicsBeginImageContextWithOptions(bounds.size, false, UIScreen.mainScreen().scale) | |
drawViewHierarchyInRect(self.bounds, afterScreenUpdates: true) | |
let image = UIGraphicsGetImageFromCurrentImageContext() | |
UIGraphicsEndImageContext() | |
return image | |
} | |
} |
This file contains hidden or 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
func showAlert(title: String, message: String){ | |
let alertController = UIAlertController(title: title, message:message, preferredStyle: .Alert) | |
let defaultAction = UIAlertAction(title: "OK", style: .Cancel, handler: nil) | |
alertController.addAction(defaultAction) | |
self.presentViewController(alertController, animated: true, completion: nil) | |
} |
This file contains hidden or 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
struct FilterBuilder { | |
let list = LinkedList<GPUImageFilter>() | |
mutating func build(filters: GPUImageFilter...) -> GPUImageFilterGroup { | |
let group = GPUImageFilterGroup() | |
for filter in filters { list.addLink(filter) } | |
var i = 0 | |
while (list.linkAtIndex(i).next != nil ){ | |
let curr = list.linkAtIndex(i) | |
group.addFilter(curr.key) |
This file contains hidden or 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
designDoc = | |
_id: "_design/blog" | |
language: "javascript" | |
views: | |
posts_by_date: | |
map: (doc) -> | |
emit doc.postedAt, doc if doc.type is "post".toString() |