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 | |
import AVFoundation | |
import UIKit | |
import AVKit | |
class ViewController: UIViewController { | |
var videoURL: NSURL = Bundle.main.url(forResource: "broad_city", withExtension: "mp4")! as NSURL | |
var movieTitle:String = "" | |
var playerController:AVPlayerViewController? | |
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
// | |
// ViewController.swift | |
// | |
import Foundation | |
import AVFoundation | |
import UIKit | |
import AVKit | |
class ViewController: UIViewController { |
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
<?xml version="1.0" encoding="utf-8"?> | |
<gradient xmlns:android="http://schemas.android.com/apk/res/android" | |
android:startColor="#FFFFFF" | |
android:centerColor="#0000FF" | |
android:endColor="#00FFFF" | |
android:angle="145" | |
android:startX="0" | |
android:endX="70" | |
android:startY="30" | |
android:endY="70" |
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
.popover { | |
background-color: #fcf8e3; | |
border-color: #faebcc; | |
color: #8a6d3b; | |
h3 { | |
margin: 0; | |
} | |
p { |
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
var status = ""; | |
// closed | |
$(".rating_badge.closed").popover({ | |
placement : 'right', | |
html: true, | |
title: 'Nima-kai Favorites<a class="close" href="#">×</a>', | |
content: $("#nima_stars p").html(), | |
trigger: "manual" |
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
var status = ""; | |
// disabled | |
$(".rating_badge.disabled").on('click', function(e) { | |
$('#choice_modal').modal(); | |
return false; | |
}); |
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
if currentDomain == 'stage.discovernikkei.org': | |
if profile.picture.name.find('sites/stage.discovernikkei.org.nikkeialbum/files/pictures'): | |
profile.picture = profile.picture.name.replace( | |
'sites/stage.discovernikkei.org.nikkeialbum/files/pictures', | |
'accounts/%s' % profile.user.username) | |
else: | |
if profile.picture.name.find('sites/www.discovernikkei.org.nikkeialbum/files/pictures'): | |
profile.picture = profile.picture.name.replace( | |
'sites/www.discovernikkei.org.nikkeialbum/files/pictures', | |
'accounts/%s' % profile.user.username) |
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
{% extends "base2_interior.html" %} | |
{% load i18n %}{% get_current_language as LANG %} | |
{% load media %} | |
{% block js %} | |
<script type="text/javascript"> | |
$(function() { | |
$("#id_username").focus(); | |
}); | |
</script> |
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
<div id="cse">Loading</div> | |
<script src="https://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load('search', '1', { | |
language : 'es' | |
}); | |
google.setOnLoadCallback(function(){ |
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
<form action="/{{ lang }}/search/" id="sitesearch" class="search"> | |
<div> | |
<input type="hidden" name="cx" value="{{ GOOGLE_SEARCH_PASSWORD }}" /> | |
<input type="hidden" name="cof" value="FORID:11" /> | |
<input type="hidden" name="ie" value="UTF-8" /> | |
<input type="hidden" name="hl" value="" /> | |
<input id="id_search_q" type="text" class="query" value="" name="q" | |
/><input type="submit" name="sa" class="submit" value="{% trans "Search" %}" /> | |
</div> | |
</form> |