- [
46dc46a
] changes when we clear the current activity from theReactContext
: moved it fromonPause
toonDestroy
. This is generally good news, as you have access to the Activity in more situations, but if you were relying on the Activity beingnull
in paused state, you'll need to change your code. - [
0b5c612
] changes how we forward Activity lifecycle events to listeners: we no longer send events generated by background Activities. The biggest implication of this is probably that, if you are using multiple React Activities, won't receiveonHostDestroy()
until the last React Activity is destroyed. Furthermore, if you're writing your own custom activities, make sure to call the new API (ReactInstanceManager#onHostPause(Activity)
and co.) to benefit from this. - [
3c4fd42
] adds aFragmentActivity
-based React Activity class, to support using libraries that rely on this. In order to achieve DRY, most of the Activity methods (onCreate
,getReactNativeHost
etc.) are now delegated to `ReactAc
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
[ | |
{ "keys": ["ctrl+shift+i"], "command": "insert_snippet", "args": {"contents": "I18n.t($SELECTION)"}, "context": | |
[ | |
{"key": "scope", "operator": "regex_contains", "operand": "ruby", "match_all": true } | |
] | |
} | |
] |
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
# ~/.local/share/applications/sublime-text.desktop | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Terminal=false | |
Exec=/opt/sublime/sublime_text %U | |
MimeType=text/plain; | |
Name=Sublime Text 2 | |
Comment=Sublime Text is a sophisticated text editor for code, html and prose. You'll love the slick user interface and extraordinary features. |
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/bash | |
OUTPUT_DIR="/var/www/bashsurv" | |
FFMPEG_INPUT_FLAGS="-rtsp_transport tcp" | |
FFMPEG_SOURCE="rtsp://192.168.1.123/video.mp4" | |
FFMPEG_OUTPUT_FLAGS="-r 20 -acodec libspeex" | |
FFMPEG_OUTPUT_EXT="ogv" | |
CLIP_LENGTH=600 # seconds | |
TIMELIMIT=620 # seconds, allows for network timeout over CLIP_LENGTH | |
KEEP_FILES_FOR=10080 # minutes |
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
PS1='\[\033[1;32m\]\w`__git_ps1`€\[\033[0m\] ' |
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
#!/usr/bin/python | |
# Set up a new A record in Cloudflare, add the details of it along with your account details below | |
# Make sure this script runs on startup (or whenever you get a new IP...) | |
# | |
# Updated for Python 3. | |
# | |
# @author Aaron Rice <aaron@duedil.com> | |
# @author Felix Oghină <felix@oghina.com> |
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 socket | |
import struct | |
import time | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.connect(('192.168.1.119', 27007)) | |
s.send(b'\x43\x52\x57\x48\x01'.ljust(128, b'\0')) | |
data = s.recv(132) | |
(len_response,) = struct.unpack('12xi', data[:16]) | |
data = s.recv(len_response) |