Skip to content

Instantly share code, notes, and snippets.

View kdeenanauth's full-sized avatar

Kevin Deenanauth kdeenanauth

View GitHub Profile
@kdeenanauth
kdeenanauth / DynamicsCRMFetchXML.cs
Created February 14, 2012 22:14
Querying Examples
// Retrieve all accounts owned by the user with read access rights to the accounts and
// where the last name of the user is not Cannon.
string fetch2 = @"
<fetch mapping='logical'>
<entity name='account'>
<attribute name='accountid'/>
<attribute name='name'/>
<link-entity name='systemuser' to='owninguser'>
<filter type='and'>
<condition attribute='lastname' operator='ne' value='Cannon' />
@kdeenanauth
kdeenanauth / oauth.js
Created February 6, 2013 16:17
Updated oAuth JS
/*
* Copyright 2008 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@kdeenanauth
kdeenanauth / gist:378c141569a185022284
Last active August 29, 2015 14:22
Printing BigIntegers in Eclipse
import java.math.BigInteger;
import org.junit.Assert;
import org.junit.Test;
public class BigIntegerTest
{
@Test
public void whyNoPrint() {
BigInteger canPrint = BigInteger.ONE;
@kdeenanauth
kdeenanauth / task.bat
Last active March 27, 2017 19:48
Cmder (conemu) Visual Studio Commandline Task
cmd /k ""C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\Tools\VsDevCmd.bat" & PowerShell" -new_console:d:"%USERPROFILE%"
@kdeenanauth
kdeenanauth / .gitconfig
Created April 6, 2017 18:40
.gitconfig
[user]
email = kevin@deenanauth.com
name = Kevin Deenanauth
[alias]
prune = fetch --prune
# Because I constantly forget how to do this
# https://git-scm.com/docs/git-fetch#git-fetch--p
undo = reset --soft HEAD^
[
{
"description": null,
"mode": "NULLABLE",
"name": "visitorId",
"type": "INTEGER"
},
{
"description": null,
"mode": "NULLABLE",
[
{
"description": null,
"mode": "NULLABLE",
"name": "visitorId",
"type": "INTEGER"
},
{
"description": null,
"mode": "NULLABLE",
@kdeenanauth
kdeenanauth / xtz.py
Last active May 1, 2017 05:42
xtz.py
#pylint: disable=expression-not-assigned, too-many-arguments, too-few-public-methods, C0103
"""xtz helps you build linear pipelines
The xtz module provides an environment to easily inject dependencies, log and debug
pipeline steps.
Example:
import logging
from typing import List
class NexusRepo {
static def getPyPiAssetVersions(String baseUrl, String repository, String filter) {
if (filter == null) {
filter = ''
}
def post = new URL(baseUrl + "/service/extdirect").openConnection();
def message = '{"action":"coreui_Component","method":"readAssets","data":[{"page":1,"start":0,"limit":10000,"sort":[{"property":"name","direction":"ASC"}],"filter":[{"property":"repositoryName","value":"' +
repository +'"},{"property":"filter","value":"' +
filter + '"}]}],"type":"rpc","tid":35}'
@kdeenanauth
kdeenanauth / JSON_Demo.ipynb
Created July 26, 2017 16:06
Python JSON Demo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.