This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.ServiceModel; | |
using System.ServiceModel.Channels; | |
using RightNow.AddIns.AddInViews; | |
using RightNow.AddIns.Common; | |
using System.AddIn; | |
using System.Windows.Forms; |
This file contains hidden or 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
mkdir "%USERPROFILE%\RightNowDev" | |
mkdir "%USERPROFILE%\RightNowDev\AddIns" | |
mkdir "%USERPROFILE%\RightNowDev\AddIns\$(TargetName)" | |
copy /Y "$(TargetDir)$(TargetName).*" "%USERPROFILE%\RightNowDev\AddIns\$(TargetName)\" |
This file contains hidden or 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 $urlRefresh = sprintf("/app/answers/list/refresh/%d", !(getUrlParm('refresh') == '1')); ?> | |
<rn:widget path="search/SearchButton2" report_id="XXXX" report_page_url="#rn:php:$urlRefresh#" /> |
This file contains hidden or 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
<html lang="#rn:language_code#"> | |
<head> | |
<meta name="viewport" content="width=device-width; initial-scale=1.0; minimum-scale=1.0; maximum-scale=1.0; user-scalable=no;"/> | |
<meta charset="utf-8"/> | |
<title><rn:page_title/></title> | |
<rn:theme path="/euf/assets/themes/mobile" css="site.css"/> | |
<rn:head_content/> | |
<link rel="icon" href="images/favicon.png" type="image/png"> | |
<?php | |
/* Manually include autoload.js |
This file contains hidden or 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
tar -cvzf ~/stuff.tar.gz folder_name file_name.txt | |
#To Zip: | |
tar czvf myfolder.tar.gz abcfolder/ | |
#To Unzip: | |
tar -zxvf extractme.tar.gz |
This file contains hidden or 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
usort($navItems, function($x, $y){ | |
if ($x->LinkOrder == $y->LinkOrder) { return 0; } | |
return ($x->LinkOrder < $y->LinkOrder) ? -1 : 1; | |
}); |
This file contains hidden or 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 CPHPUtil { | |
/** | |
* Find a LookupName's ID in Connect PHP | |
* @param string $label Label to find as lookup name | |
* @param string $field_name Field name to compare label against lookup names. | |
* @param string $object Object that contains the field to search | |
* @return int|boolean Returns ID if found, false otherwise | |
*/ |
This file contains hidden or 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
//Error Reporting for debugging. Comment out for deployment | |
ini_set('display_errors',1); | |
error_reporting(E_ALL ^ E_NOTICE); |
This file contains hidden or 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
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Alert" message:@"You pushed cancel" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK", nil]; | |
[alert show]; |
This file contains hidden or 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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package com.rightnow.ps.example; | |
import com.rightnow.ws.base.*; | |
import com.rightnow.ws.faults.*; | |
import com.rightnow.ws.messages.*; | |
import com.rightnow.ws.objects.*; |