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 org.apache.cordova; | |
import org.acra.ErrorReporter; | |
import org.apache.cordova.api.Plugin; | |
import org.apache.cordova.api.PluginResult; | |
import org.apache.cordova.api.PluginResult.Status; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
public class YouTubeUploadPlugin extends Plugin { |
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
(function() { | |
if (Cordova.hasResource("youtubeUploader")) return; | |
Cordova.addResource("youtubeUploader"); | |
function YouTubeUploader() { | |
} | |
YouTubeUploader.prototype.uploadVideo = function(file, success, fail) { |
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
YouTubeUploader ytu = new YouTubeUploader(); | |
ytu.OtherLogin(); | |
String url = ytu.UploadVideo(file, title, desc); | |
if (url != null) { | |
// it's URL of the uploaded video | |
} else { | |
// video failed to be uploaded |
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
function loadApp() { | |
Ext.Loader.setConfig({ | |
enabled: true | |
}); | |
Ext.application({ | |
name: 'SenchaFiddle', | |
launch: function() { | |
Ext.create('Ext.Panel', { |
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
GNU nano 2.2.4 File: /etc/nginx/sites-enabled/gitlab | |
# GITLAB | |
# Maintainer: @randx | |
# App Version: 4.0 | |
upstream gitlab { | |
server unix:/home/gitlab/gitlab/tmp/sockets/gitlab.socket; | |
} |
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
<div class="content"> | |
<h1></h1> | |
<h2> | |
<p>Certified Nursing Assistant - Full Time</p> | |
Job Summary</h2> | |
<p>Responsible for providing personal care and assistance for residents in long term care facility.</p> | |
<h2> | |
</h2><h3>Essential Functions:</h3> |
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
<table class="attendance-table"> | |
<tbody><tr class="attendance-table-head"> | |
<th class="table-head-td-course">Course</th> | |
<th class="table-head-td">Total Classes</th> | |
<th class="table-head-td">Present</th> | |
<th class="table-head-td">Absent</th> | |
<th class="table-head-td">Details</th> | |
</tr> | |
<tr class="attendanceRow"> | |
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
from django.core.paginator import Paginator, Page | |
class SmartPaginator(Paginator): | |
def __init__(self, object_list, per_page, range_count=3, | |
orphans=0, allow_empty_first_page=True): | |
self.range_count = range_count | |
super(SmartPaginator, self).__init__(object_list, per_page, orphans=orphans, | |
allow_empty_first_page=allow_empty_first_page) | |
def page(self, number): |
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
<?xml version='1.0' encoding='utf-8' ?> | |
<PAGE id='HRS_APP_SCHJOB'><GENSCRIPT id='script'><![CDATA[document.win0.HRS_LOCATION$hnewpers$0.value='0|0|0|1|1|0|0#2|0|0|0|0|0|0#'; | |
document.win0.HRS_JOB_FAM_I$hnewpers$0.value='0|0|0|0|0|0|0#2|0|0|0|0|0|0#'; | |
document.win0.HRS_LOC_VW1_$hnewpers$0.value='0|0|0|0|0|0|0#2|0|0|0|0|0|0#'; | |
document.win0.HRS_JOB_FAM_I_2_$hnewpers$0.value='0|0|0|0|0|0|0#2|0|0|0|0|0|0#'; | |
document.win0.HRS_AGNT_RSLT_I$hnewpers$0.value='0|0|0|0|0|69|0#1|0|0|0|0|97|0#2|0|0|0|0|0|0#5|0|0|0|0|198|0#6|0|0|0|0|46|0#10|0|0|0|0|96|0#'; | |
gridList_win0 = [ | |
['HRS_LOCATION$0',0,1,0,0,1],['HRS_JOB_FAM_I$0',0,1,0,0,1],['HRS_LOC_VW1_$0',0,1,0,0,1],['HRS_JOB_FAM_I_2_$0',0,1,0,0,1],['HRS_AGNT_RSLT_I$0',10,19,0,0,1] | |
]; | |
gridHeaderList_win0 = [ |
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
@font-face { | |
font-family: Pictos; | |
src: url('http://cdn.sencha.io/touch/sencha-touch-2.3.0/resources/themes/fonts/pictos/pictos-web.eot'); | |
src: url('http://cdn.sencha.io/touch/sencha-touch-2.3.0/resources/themes/fonts/pictos/pictos-web.eot?') format('☺'), | |
url('http://cdn.sencha.io/touch/sencha-touch-2.3.0/resources/themes/fonts/pictos/pictos-web.woff') format('woff'), | |
url('http://cdn.sencha.io/touch/sencha-touch-2.3.0/resources/themes/fonts/pictos/pictos-web.ttf') format('truetype'), | |
url('http://cdn.sencha.io/touch/sencha-touch-2.3.0/resources/themes/fonts/pictos/pictos-web.svg') format('svg'); | |
font-weight: normal; | |
font-style: normal; | |
} |
OlderNewer