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
package io.kickflip.sample.activity; | |
import android.os.Bundle; | |
import android.os.Environment; | |
import android.view.View; | |
import android.widget.Button; | |
import java.io.File; | |
import io.kickflip.sample.R; |
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
''' | |
Makes a tarfile from every top-level directory in BACKUP_PATH | |
and transmits that to Amazon Glacier. | |
Requirements: | |
Environmental Variables: | |
+ AWS_ACCESS_KEY_ID | |
+ AWS_SECRET_ACCESS_KEY |
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
[Kickflip setupWithAPIKey:@"CLIENT_ID" secret:@"CLIENT_SECRET"]; | |
[Kickflip presentBroadcasterFromViewController:self ready:^(KFStream *stream){ | |
if (stream) { | |
NSLog(@"Stream is ready to view at URL: %@", stream.streamURL); | |
} | |
} | |
completion:^{ | |
NSLog(@"Finished broadcasting."); | |
}]; |
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
Kickflip.setup(this, "CLIENT_ID", "CLIENT_SECRET"); | |
Kickflip.startBroadcastActivity(this, new BroadcastListener() { | |
@Override | |
public void onBroadcastStart() { | |
// The user began broadcasting | |
} | |
@Override | |
public void onBroadcastLive(Stream stream) { | |
// This device's broadcast is live! |
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
''' | |
Find oldest created buckets in your AWS account and optionally delete them | |
Requirements: | |
Environmental Variables: | |
+ AWS_ACCESS_KEY_ID | |
+ AWS_SECRET_ACCESS_KEY | |
Python packages: |
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
package io.kickflip.glasscast; | |
public class SECRETS { | |
public static final String CLIENT_KEY = "YourKickflipKey"; | |
public static final String CLIENT_SECRET = "YourKickflipSecret"; | |
} |
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
// My Iron-Router map has these two routes | |
// I'd like to redirect all requests to /forum/:id | |
// onward to /forum/:id/:slug | |
// Using this.redirect(...) works but prevents the | |
// browser from navigating "back" | |
this.route('questionDetailWithSlug', { | |
template: 'questionDetail', | |
path: '/forum/:id/:slug', | |
action: function(){ |
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
getCurrentCamera().setPosition(0, 0, 0); | |
Sphere sphere = new Sphere(10, 24, 24); | |
/** Below renders a portion of the exterior of the sphere with texture applied */ | |
sphere.setPosition(0, 0, -13); | |
/** Below renders nothing when I'd expect to "see" the interior of the sphere */ | |
//sphere.setPosition(0, 0, 0); | |
Material material = new Material(); | |
material.addTexture(new Texture("brc", R.drawable.brc_sm)); | |
sphere.setMaterial(material); |
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
''' | |
Construct a single image by stacking the bottom READ_HORIZ_PX | |
of each source frame of form image-XXXX.jpeg. | |
To create source frames of form image-XXXX.jpeg from a video file: | |
$ ffmpeg -i inputfile.avi image-%4d.jpeg | |
This was helpful in extracting a QR code partially displayed | |
across many frames. | |
''' |
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
import sys | |
import subprocess | |
DEX2JAR_PATH = ‘/PATH/TO/dex2jar-2.0/d2j-dex2jar.sh' # https://github.com/pxb1988/dex2jar | |
APKTOOL_JAR_PATH = ‘PATH/TO/apktool.jar' # http://ibotpeaches.github.io/Apktool/install/ | |
JDCLI_JAR_PATH = '/PATH/TO/jd-cli.jar' # https://github.com/kwart/jd-cmd | |
# TODO SANITIZE INPUT | |
query = sys.argv[1] |
OlderNewer