Skip to content

Instantly share code, notes, and snippets.

View jbaxleyiii's full-sized avatar
💼
Moved to management

James Baxley jbaxleyiii

💼
Moved to management
View GitHub Profile
DECLARE @FundId int = 180;
DECLARE @today AS DATE = GETDATE();
DECLARE @reportEndDate AS DATE = CONVERT(DATE, DATEADD(DAY, 1 - DATEPART(WEEKDAY, @today), @today));
DECLARE @reportStartDate AS DATE = DATEADD(YEAR, -4, @reportEndDate);
IF ISDATE(@StartDate) = 1 AND ISDATE(@EndDate) = 1
BEGIN
SELECT @reportEndDate = @EndDate;
SELECT @reportStartDate = @StartDate;
END
mutation {
cache(id: "509372", type: "Content") {
id
... on Content {
content {
isLight
colors {
value
}
}
" ===============================================================
" norma
"
" URL:
" Author: jbaxleyiii
" License: MIT
" Last Change: 2016/11/03 00:26
" ===============================================================
let g:colors_name="norma"
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 14,
// font family with optional fallbacks
fontFamily: 'Operator Mono, Ubuntu Mono, monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: '#C59DF0',
@jbaxleyiii
jbaxleyiii / Microsoft.Powershell_profile.ps1
Created January 30, 2017 03:17 — forked from 333fred/Microsoft.Powershell_profile.ps1
Microsoft.Powershell_profile.ps1
Import-Module PSReadLine
Set-PSReadlineKeyHandler -Key Tab -Function Complete
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward
#region Smart Insert/Delete
# The next four key handlers are designed to make entering matched quotes
# parens, and braces a nicer experience. I'd like to include functions
@jbaxleyiii
jbaxleyiii / GitShellAliases.ps1
Created January 30, 2017 03:17 — forked from tosyu/GitShellAliases.ps1
Few simple commands/aliases for git in powershell. installation save as for ex.: C:\gitcommands.ps1 open powershell type: notepad $profile add line: . "C:\gitcommands.ps1" close shell
function g {
$newArgs=$args[1..($args.Length-1)]
if ($args[0] -eq "ci") {
git commit $newArgs
} elseif ($args[0] -eq "hof") {
git shortlog -n -s --no-merges
} elseif ($args[0] -eq "cic") {
git commit --amend
} elseif ($args[0] -eq "snake") {
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
@jbaxleyiii
jbaxleyiii / ***_NativeDeviceModel.cs
Last active February 20, 2017 04:30
Migration / Model / Types for native communication addition to Rock
// <copyright>
// Copyright by the Spark Development Network
//
// Licensed under the Rock Community License (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.rockrms.com/license
//
// Unless required by applicable law or agreed to in writing, software
<div>
<menu type="toolbar">
<a class="sort">sort</a> or <a class="reset">reset</a>
</menu>
<div class="example">
<ul id="xret">
<li style="color: red;"><span class="">elit</span></li>
<li><span class="striked">ac</span></li>
<li style="color: red;"><span class="">feugiat</span></li>
<li style="color: red;"><span class="">orci</span></li>
@jbaxleyiii
jbaxleyiii / integration.js
Last active March 17, 2017 01:58
React + St
// define some abstract style transformations
// bumpFontSize :: CSS -> CSS
const bumpFontSize = evolve({
fontSize: add(4),
});
// darkenText :: CSS -> CSS
const darkenText = evolve({
color: a => chroma(a).darken().hex(),
});
@jbaxleyiii
jbaxleyiii / junction.js
Last active January 21, 2018 17:45
Functional react
import Junction from "react-junction";
import { View } from "react-native";
import { omit } from "ramda";
import { renderComponent } from "recompose";
import { graphql, gql } from "react-apollo";
// the primitive styling of the component
const Avatar = Junction(props => ({
borderRadius: 50,
borderSize: 2,