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
- (NSURLRequest *)requestForFetchRequest:(NSFetchRequest *)fetchRequest | |
withContext:(NSManagedObjectContext *)context { | |
// init the query string dictionary | |
NSMutableDictionary *queryString = nil; | |
// if we're given a predicate, convert it to a dictionary | |
if (fetchRequest.predicate) { | |
if ([fetchRequest.predicate isKindOfClass:[NSCompoundPredicate class]]) { |
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
on *:TABCOMP:#: { | |
/editbox -a $1- $+ $chr(58) | |
/halt | |
} |
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
#parent { | |
height: 300px; | |
} |
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
# https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.sendkeys | |
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") | |
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | |
while (1) { | |
$duration = Get-Random -Minimum 10 -Maximum 60 | |
Write-Output "Waiting $duration seconds ..."; | |
Start-Sleep -Seconds $duration |
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
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved. | |
#include "ShooterGame.h" | |
#include "Weapons/ShooterWeapon.h" | |
#include "Weapons/ShooterDamageType.h" | |
#include "UI/ShooterHUD.h" | |
#include "Online/ShooterPlayerState.h" | |
#include "Animation/AnimMontage.h" | |
#include "Animation/AnimInstance.h" | |
#include "Sound/SoundNodeLocalPlayer.h" |
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
(defn append-user-data [handler] | |
(fn [request] | |
(clutch/with-db database-address | |
(let [access-token (get-in request [:headers "token"]) | |
view-data (clutch/get-view "api" "users-by-token" {:keys [access-token]})] | |
(if (= 1 (count view-data)) | |
(handler (assoc request :api-user (:value (first view-data)))) | |
{:status 403 | |
:body "Invalid access token"}))))) |
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 v.custodian_id, COUNT(DISTINCT NVL(LOWER(TRIM(v.serial_numberev)), v.evidence_id)) AS esi_count | |
FROM evidence_to_custodian e | |
LEFT OUTER JOIN evidence_main v ON v.evidence_id = e.evidence_id | |
WHERE v.purged != 1 AND LOWER(v.source) = 'ac' AND v.inventory_class = 1 AND LOWER(v.source_mediaev) = 'hdd' AND e.custodian_id IN (:custodians) | |
GROUP BY v.custodian_id |
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 t.emplid | |
FROM term_file t | |
WHERE t.emplid IN (SELECT v.custodian_id FROM evidence_main v GROUP BY v.custodian_id HAVING COUNT(v.custodian_id) > 50) |
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
#include <node.h> | |
#include <v8.h> | |
#ifndef UNIX | |
#define UNIX | |
#define UNIX_64 | |
#endif | |
#include <scctype.h> | |
#include <sccex.h> |
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
// | |
// TitleField.h | |
// mustached-bear | |
// | |
// Created by Ryan Cole on 8/12/12. | |
// Copyright (c) 2012 Ryan Cole. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
NewerOlder