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
class Foo { | |
bar() { | |
console.log('bar'); | |
} | |
} | |
class Baz extends Foo{} | |
const baz = new Baz(); |
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 math, sys, time | |
import pp | |
def isprime(n): | |
"""Returns True if n is prime and False otherwise""" | |
if not isinstance(n, int): | |
raise TypeError("argument passed to is_prime is not of 'int' type") | |
if n < 2: | |
return False | |
if n == 2: |
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/env bash | |
function openWorkspaceOrProjectWithApp() | |
{ | |
if [[ -z "$1" || "$#" -ne 2 ]]; then | |
echo -e "Nothing found\n" | |
return | |
fi | |
IDEFileName=${2##*/} |
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
~/Documents/work/kamcord-ios-app/kamcord$ mediastreamvalidator http://lisbakken.com/playlist2.m3u8 | |
mediastreamvalidator: Beta Version 1.1(140602) | |
Validating master playlist http://lisbakken.com/playlist2.m3u8 | |
Validating media playlist http://content.kamcord.com/stream/f14xYPGlzxd/q4/playlist.m3u8 [ 1.59 Mbits/sec] | |
Validating media playlist http://content.kamcord.com/stream/f14xYPGlzxd/q3/playlist.m3u8 [815.92 kbits/sec] | |
Validating media playlist http://content.kamcord.com/stream/f14xYPGlzxd/q1/playlist.m3u8 [324.40 kbits/sec] | |
Validating media playlist http://content.kamcord.com/stream/f14xYPGlzxd/q2/playlist.m3u8 [570.16 kbits/sec] | |
Validating media playlist http://content.kamcord.com/stream/f14xYPGlzxd/q5/playlist.m3u8 [ 4.42 Mbits/sec] |
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
UIViewController *previous = self.navigationController.viewControllers[previousVcNum]; | |
if ([previous isKindOfClass:[KcVideoViewController class]]) { | |
previous.hidesBottomBarWhenPushed = YES; | |
} | |
[self.navigationController popViewControllerAnimated:YES]; |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="mediaelementplayer.min.css" type="text/css" media="screen" title="no title" charset="utf-8"> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<script src="mediaelement-and-player.min.js" type="text/javascript" charset="utf-8"></script> | |
</head> | |
<body> | |
<video id="player1" preload="auto" controls width="640" height="480" autoplay> |