Skip to content

Instantly share code, notes, and snippets.

View swaters86's full-sized avatar
🏠
Kicking ass and taking names

Steve Waters swaters86

🏠
Kicking ass and taking names
View GitHub Profile
#set-executionpolicy unrestricted
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('title of the application window')
Sleep 1
# stopping Bit service
$nbStopCommand1 = {net stop bits}
$nbStopCommand2 = {net stop wuauserv}
#set-executionpolicy unrestricted
$wshell = New-Object -ComObject wscript.shell;
$wshell.AppActivate('title of the application window')
Sleep 1
# stopping Bit service
$nbStopCommand1 = {net stop bits}
$nbStopCommand2 = {net stop wuauserv}
$schema = Yii::app()->db->schema;
$builder = $schema->commandBuilder;
$command = $builder->createFindCommand($schema->getTable('pos_patient_info'), $criteria);
$results = $command->text;
var_dump($results);
exit
@swaters86
swaters86 / RoundedCornersWithASassMixin.txt
Created November 16, 2016 04:15
An example of how to create a SASS mixin for adding different types of rounded corners to an element (i.e. top left , top right, bottom left, etc rounded corners)
HTML
=========================================================
<div class="my-element">
Hey, this is a blue rectangle with 5px rounded corners on all sides.
</a>
SASS/CSS
=========================================================
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
SELECT *
INTO #Temp2
FROM
(Select aa.OID, ROW_NUMBER()
OVER (ORDER BY aa.OID) AS RowN
FROM VCG_PersonToTeam_Grid_View aa
inner join CG_UserLog (nolock) bb
on aa.PersonMemberOfTeams = bb.UserID
Where aa.GCRecord is null AND aa.TeamName='E-mail Team' and bb.UserLoggedIn=1 )a
// Get list of properties for an object
var dueDateControl = document.querySelectorAll('#DynamicLayoutControl1_DueDate_dtc_24_DueDate_Date_I');
console.log(Object.getOwnPropertyNames(GetDateTimeControl("DueDate")));
118 All Active Incidents 0 0 All active incidents. SDInterfaces.Entities.IIncidentRequest 0 1 1 1 1 0 0 ALL Global Views 1
/* Logically delete the report */
UPDATE ChangeGear.dbo.CG_ReportEntity
SET GCRecord = 12345
WHERE NAME = 'New Pie Chart'
/* Check the GCRecord field for the report record*/
/* If it's null, then that means it's not deleted */
/* If it's a numeric value, then that mean it is deleted */
SELECT GCRecord