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
<?php | |
function czyLokalnaEdycja($id) | |
{ | |
$json=file_get_contents("http://localhost:8089/dvr/files/".$id."/comskip/status"); | |
$obj = json_decode($json,true); | |
return $obj["HasLocalComskipResults"]; | |
} | |
// Główne zmienne |
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 | |
NAZWA="$(basename "$1" | sed 's/\(.*\)\..*/\1/')" | |
echo "Generating split command\n" | |
KOMENDA="tr -d '\n' < \"$NAZWA.ffsplit\"" | |
STRING=`eval $KOMENDA` | |
echo $STRING | |
#echo "ffmpeg -i \"$1\"" | |
eval "ffmpeg -i \"$1\" $STRING" |
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
<?php | |
$jsonfile = "https://www.cwseed.com/shows/linear-schedule/cwseed/2"; | |
$decodedguide = json_decode(file_get_contents($jsonfile),true); | |
$guidefile = fopen("cwseed.xml","w") or die("Unable to open file"); | |
$tv = new SimpleXMLElement('<tv> </tv>'); | |
$channel = $tv->addChild("channel"); | |
$channel->addAttribute("id","cw-seed"); | |
$channel->addChild("display-name","CW SEED"); |
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
<?php | |
/** | |
* Class for dealing with Trakt API | |
*/ | |
class Trakt | |
{ | |
public $clientid; | |
public $content_type; | |
public $apiurl; | |
public $ch; |
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 incrementFLoat($float){ | |
echo $float."\n"; | |
$decimal = strlen(strrchr($float, '.')) -1; | |
$factor = pow(10,$decimal); | |
$incremented = (($factor * $float) + 1) / $factor; | |
return $incremented; | |
} | |
function decrementFLoat($float){ | |
// get amount of decimals |
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
require 'combine_pdf' | |
pdf = CombinePDF.new | |
Dir.glob("*.pdf") do |file| | |
pdf << CombinePDF.load(file) | |
end | |
pdf.save "KukBuk.pdf" |
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
set tekst to (get the clipboard) | |
set lns to paragraphs of tekst | |
set bodytekst to "" | |
set tytul to item 1 of lns | |
repeat with ln from 2 to length of lns | |
set linia to item ln of lns | |
set bodytekst to bodytekst & linia & " | |
" |
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"?> | |
<rss version="2.0" | |
xmlns:admin="http://webns.net/mvcb/" | |
xmlns:content="http://purl.org/rss/1.0/modules/content/" | |
xmlns:dc="http://purl.org/dc/elements/1.1/" | |
xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" | |
xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" | |
> |
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 convertNumberToEmoji($cyfra) | |
{ | |
switch ($cyfra) { | |
case '0': | |
return "\u{30}\u{FE0F}\u{20E3}"; | |
break; | |
case '1': | |
return "\u{31}\u{FE0F}\u{20E3}"; |
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
self.title = @"Your TiTle Text"; | |
UILabel* tlabel=[[UILabel alloc] initWithFrame:CGRectMake(0,0, 200, 40)]; | |
tlabel.text=self.navigationItem.title; | |
tlabel.textColor=[UIColor whiteColor]; | |
tlabel.font = [UIFont fontWithName:@"Helvetica-Bold" size: 30.0]; | |
tlabel.backgroundColor =[UIColor clearColor]; | |
tlabel.adjustsFontSizeToFitWidth=YES; | |
self.navigationItem.titleView=tlabel; |
NewerOlder