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
wget http://download.virtualbox.org/virtualbox/4.3.18/VBoxGuestAdditions_4.3.18.iso | |
sudo mkdir /media/iso | |
sudo mount -o loop VBoxGuestAdditions_4.3.18.iso /media/iso | |
cd /media/iso/ | |
sudo ./VBoxLinuxAdditions.run |
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 SJevs\LibBundle; | |
use SJevs\LibBundle\Preg; | |
/* | |
* Grabber with Tor functionality | |
* | |
@author Sergej Jevsejev |
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 SJevs\LibBundle; | |
/* | |
@author Sergej Jevsejev | |
@url http://sjevsejev.blogspot.com | |
*/ | |
class Preg |
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 __construct($login, $password, $phoneLast4Digits) | |
{ | |
$this->$phoneLast4Digits = $phoneLast4Digits; | |
$this->gb = new Grabber(); | |
$data = $this->gb->post('http://login.vk.com/?act=login', | |
array( | |
'act' => 'login', |
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 | |
/* | |
* Returns iframe code to play video | |
* Note: some videos are unable to embed because of particular video settings | |
*/ | |
public function play($id1, $id2) | |
{ | |
// getting hash | |
$hash = $this->gb->getPregOne('http://vk.com/video'.$id1.'_'.$id2, "/hash2[^0-9a-f]*([0-9a-f]*)/"); |
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 | |
$vk = new vk($login, $password, $phoneLast4Digits); | |
// Get array of the movies | |
$videos = $vk->search('The Avatar'); | |
// get iframe code for any movie from array | |
$html = $vk->play($videos[0]['id1'], $videos[0]['id2']); |
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 | |
if ($detect->isIpad()) { | |
// code to run for the iPad platform | |
} | |
if ($detect->isIphone()) { | |
// code to run for the iPhone platform | |
} | |
if ($detect->isAndroid()) { |
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 | |
include("Mobile_Detect.php"); | |
$detect = new Mobile_Detect(); |
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
<!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if offline --> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\/script>')</script> |
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
/* | |
rewriten to less.js by Sergej Jevsejev | |
@date 2012 07 14 | |
@webpage http://sjevsejev.blogspot.com | |
960 Grid System ~ Core CSS. | |
Learn more ~ http://960.gs/ | |
Licensed under GPL and MIT. | |
*/ |
OlderNewer