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 ZendeskImportCommand extends CConsoleCommand | |
{ | |
private $users; | |
private $apps; | |
private $list = 3; | |
/** | |
* @var $zendesk ZenDesk | |
*/ |
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 `table` set `field` = replace(`field` ,'É','É'); | |
update `table` set `field` = replace(`field` ,'“','"'); | |
update `table` set `field` = replace(`field` ,'â€','"'); | |
update `table` set `field` = replace(`field` ,'Ç','Ç'); | |
update `table` set `field` = replace(`field` ,'Ã','Ã'); | |
//Edit by slash4 | |
update `table` set `field` = replace(`field` ,'Ã ','À'); | |
update `table` set `field` = replace(`field` ,'ú','ú'); | |
update `table` set `field` = replace(`field` ,'•','-'); | |
update `table` set `field` = replace(`field` ,'Ø','Ø'); |
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 Node | |
{ | |
public $data; | |
public $left; | |
public $right; | |
public $nextRight; |
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
import xml.etree.ElementTree as ET | |
def indent(elem, level=0): | |
i = "\n" + level*" " | |
if len(elem): | |
if not elem.text or not elem.text.strip(): | |
elem.text = i + " " | |
if not elem.tail or not elem.tail.strip(): | |
elem.tail = i |
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
import xml.etree.ElementTree as ET | |
def indent(elem, level=0): | |
i = "\n" + level*" " | |
if len(elem): | |
if not elem.text or not elem.text.strip(): | |
elem.text = i + " " | |
if not elem.tail or not elem.tail.strip(): | |
elem.tail = i |
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"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.google.android.gcm.demo.app"> | |
<!-- permissions --> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<!-- contexts --> | |
<activity android:name="com.activities.PrefsActivity" | |
android:theme="@android:style/Theme.Translucent.NoTitleBar" |
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 TrafficTest; | |
class Traffic | |
{ | |
private $db; | |
private $table = 'traffic'; | |
public $code; | |
public $period; |
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 YUM :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
sudo yum update -y | |
:: INSTALL WEBSERVER ::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
sudo yum install httpd24 | |
sudo service httpd start | |
sudo chkconfig httpd on | |
chkconfig --list httpd |
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
var currKeypadField; | |
var keypad; | |
var checkbox_group_ids = []; | |
window.onload = function(event) { | |
keypad = document.getElementById('virtual-keypad'); | |
setBodySize(); | |
var inputs = document.getElementsByTagName("input"); |
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\modules\guides\controllers; | |
use app\modules\guides\components\Parser; | |
use yii\filters\AccessControl; | |
use yii\helpers\Markdown; | |
use yii\helpers\Url; | |
use yii\web\Controller; |