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
This is a gist | |
This the 3rd line of the gist | |
class Foo { | |
let x: Int | |
} | |
struct Bar { | |
let y: Int |
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
#!/bin/bash | |
# play YUV444 FULL HD file | |
gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \ | |
videoparse width=1920 height=1080 framerate=25/1 format=GST_VIDEO_FORMAT_Y444 ! \ | |
videoconvert ! \ | |
autovideosink | |
# play YUV422 FULL HD file | |
gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \ |
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
[File] | |
size = 296804354 | |
[ftyp: File Type Box] | |
position = 0 | |
size = 24 | |
major_brand = isom : ISO Base Media file format version 1 | |
minor_version = 512 | |
compatible_brands | |
brand[0] = isom : ISO Base Media file format version 1 | |
brand[1] = mp41 : MP4 version 1 |
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
public abstract class FindCallback<T extends ParseObject> extends ParseCallback<List<T>> { | |
public abstract void done(List<T> list, ParseException parseException); | |
@Override | |
void internalDone(List<T> list, ParseException parseException) { | |
done(list, parseException); | |
} | |
} |
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
self.frame = newframe; | |
self.unstackedRect = newframe; | |
self.subview.frame = CGRectMake(self.subview.frame.origin.x, | |
self.subview.frame.origin.y, | |
self.imageViews.count * 98, | |
99); | |
self.contentSize = CGSizeMake(self.imageViews.count * 98, self.subview.frame.size.height); | |
[self setScrollEnabled:YES]; |
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
#run this to automatically re-run "ruby path_to_enlightenment.rb" on save | |
ruby_files = Dir.entries(".").select{ |filename| filename[/.rb/] } | |
mtimes = ruby_files.map { |filename| | |
File.stat(filename).mtime | |
} | |
ruby_files.each { |filename| puts filename } |
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
object MainRouter { | |
implicit val session: Option[Session] | |
implicit val flash: ... | |
runRoutes { | |
UserController.routes | |
OtherController.routes | |
} | |
} |
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
#!/bin/sh | |
EXPECTED_ARGS=1 | |
E_BADARGS=65 | |
if [ $# -ne $EXPECTED_ARGS ] | |
then | |
echo "usage: `basename $0` {newProjectName}" | |
exit $E_BADARGS | |
fi | |
mkdir $1 | |
mkdir $1/src |