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 | |
$position = 'waist'; | |
$size = 'normal'; | |
$letters = 'SRT'; | |
$color = "000000"; | |
$font = 'arial'; | |
$positions = array( | |
'waist'=>array(358,440,-6) | |
); |
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 | |
$filterColors = array( | |
'altin' => array('gold', 'altin', 'hardal', 'mustard', 'poppy', 'buttercup', 'candlelight', 'marigold', 'canary'), | |
'gumus' => array('silver', 'gumus'), | |
'beyaz' => array('white', 'beyaz', 'inci', 'fildisi', 'kemik','kırık beyaz','ecru','ekru', 'cream', 'eggshell', 'ghost white', 'honeydew', 'snow', 'vanilla', 'smoke'), | |
'siyah' => array('black', 'siyah', 'zebra', 'charcoal', 'ebony', 'ashes', 'mystery', 'coal', 'midnight', 'raven', 'darkenss', 'velvet', 'dusk', 'shadow', 'stygian', 'gunmetal'), | |
'yesil' => array('green', 'yesil', 'yesili', 'haki', 'yosun', 'zeytin', 'bataklik', 'harlquin', 'honeydew', 'lime', 'mint', 'shamrock'), | |
'kahverengi' => array('brown', 'kahverengi', 'bakir', 'bronz', 'camel', 'ceviz', 'kakao', 'leopar', 'taba', 'ma un', 'tutun', 'toprak', 'vizon', 'barut', 'asiboyasi', 'auburn', 'beaver', 'bole', 'bronze', 'burnt umber', 'chestnut', 'chocolate', 'cikolata', 'coffee', 'kahve', 'taupe', 'tawny'), | |
'mavi' => array('blue', 'mavi','civit |
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 cartesianProductOf() { | |
return Array.prototype.reduce.call(arguments, function(a, b) { | |
var ret = []; | |
a.forEach(function(a) { | |
b.forEach(function(b) { | |
ret.push(a.concat([b])); | |
}); | |
}); | |
return ret; |
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
SELECT | |
s.nStokID as StokID, | |
sb.sBarkod as Barkod, | |
s.sModel as Model, | |
s.sKodu as StokKodu, | |
s.sAciklama as ModelAdi, | |
r.sRenkAdi as Renk, | |
s.sBeden as Beden, | |
r.sRenk as RenkID, | |
s.sBedenTipi as BedenTipi, |
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
UPDATE tbStokSiraNo SET nSonID = nSonID+1 WHERE nSiraIndex = 2 | |
__nStokFisiID = SELECT nSonID FROM tbStokSiraNo WHERE nSiraIndex = 2 | |
INSERT INTO tbStokFisiMaster VALUES (__nStokFisiID , 'FS' , '__GG/AA/YYYY' , 3, __FATURANO, __FIRMAID, '' , '__GG/AA/YYYY' , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Null , Null, Null, Null , Null, '' , 0, 0, 0, Null, '' , 0, 'sa' , getdate(), '__YAZIYLA TOTAL' ,0, 0, 0, 0, 0, 0 ) | |
INSERT INTO tbStokFisiAciklamasi VALUES (__nStokFisiID,'','','','',''); | |
/*Foreach Item In Cart*/ | |
UPDATE tbStokSiraNo SET nSonID = nSonID+1 WHERE nSiraIndex = 1 | |
__nIslemID = SELECT nSonID FROM tbStokSiraNo WHERE nSiraIndex = 1 |
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 | |
$films = Film::with('roles','genre'); | |
$title = Input::get('title',false); | |
if($title){ | |
$films->where('title',$title); | |
} | |
$genre = Input::get('genre',false); | |
if($genre){ |
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 Advertisement(category,media_id,frequency,duration){ | |
this.category = category, | |
this.media_id = media_id; | |
this.frequency = frequency; | |
this.duration = duration; | |
this.getAds = function(){ | |
var ads = [{time : 0, adTagUrl : this.getVast("preRoll")}]; | |
var midrollCount = parseInt(this.duration/this.frequency); | |
for(i=1;i<=midrollCount;i++){ | |
var midroll = { |
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 | |
namespace App\Serializers; | |
use League\Fractal\Serializer\JsonApiSerializer; | |
use League\Fractal\Resource\ResourceInterface; | |
class DataArraySerializer extends JsonApiSerializer | |
{ | |
/** |
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 -e | |
# Distro: Amazon Linux AMI release 2015.03 | |
# Derived from https://trac.ffmpeg.org/wiki/CompilationGuide/Centos | |
# Builds the dependencies in parallel prior to starting FFmpeg build. | |
sudo yum update -y | |
sudo yum install -y autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel yasm libogg libvorbis-devel libvpx-devel |
OlderNewer