Skip to content

Instantly share code, notes, and snippets.

View tradingbills's full-sized avatar

Jason Ashley tradingbills

  • Los Alamitos, CA
View GitHub Profile
var collName= 20180419
// 2018-04-18 00:00:00 to
// 2018-04-18 23:59:59
var dateRange= {"$gte":1524009600,"$lte":1524095999}
var queryDoc11={}; queryDoc11.signed_up_at = dateRange
// -----------------------------------------------------
queryDoc11 = undefined
var queryDoc11= {}, paid = "59deb60085a3c22795133b02", free = "59dfe40a0a5037ff1c0bd8af"
var useSegId = paid
queryDoc11= {"last_request_at": dateRange, "segments.segments.id":useSegId}
@tradingbills
tradingbills / 7.a Signedup and Upgraded in Date RangeItemized by ID.js
Last active March 2, 2018 15:52
Signedup and Paid within dateRange, Itemized who and what
var collName= 20180302
// 2018-03-02 00:00:00 to
// 2018-03-02 23:59:59
var dateRange= {"$gte":1519948800,"$lte":1520035199}
var queryDoc; queryDoc.signed_up_at = dateRange
var paid = "59deb60085a3c22795133b02"
var free = "59dfe40a0a5037ff1c0bd8af"
var segPaidOrFree = paid
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "ctrl+`",
"command": "workbench.action.togglePanelPosition"
},
{
"key": "ctrl+l",
"command": "-expandLineSelection",
"when": "textInputFocus"
{
"workbench.editor.showTabs": true,
"workbench.colorTheme": "Monokai Pro (Filter Spectrum)",
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": true,
"editor.minimap.enabled": false,
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
let NERDTreeShowHidden=1
let g:user_emmet_leader_key=','
nnoremap <Leader>q" ciw""<Esc>P
nnoremap <Leader>q' ciw''<Esc>P
nnoremap <Leader>qd daW"=substitute(@@,"'\\\|\"","""","g""")<CR>P
set splitright
nmap <F6> :NERDTreeToggle<CR>
"This allows buffers to be hidden if you've modified a buffer.
"This is almost a must if you wish to use buffers in this way.
set hidden
@tradingbills
tradingbills / fonts
Last active June 11, 2019 14:19
vim_vim_lib_plugins
" # Load Plugins
" Adding and deleting Vim scripts can be tough to manage. If you code in, say, C, you have files for
" syntax, a filetype detection, plugin features, and more - and all of these files are stored in
" separate directories along with like files from all of your other plugins. If you want to remove a
" plugin, you must search all of these directories and delete them manually. What a mess.
" Load the VIM-Plug package manager.
runtime plug/plug.vim
{"presets":[["@babel/preset-env",{"targets":{"esmodules":true}}]]}
@tradingbills
tradingbills / airline
Last active June 11, 2019 14:27
vim_vim_lib_plugin-customizations.vim
" Automatically populate the g:airline_symbols dictionary with the powerline symbols.
let g:airline_powerline_fonts = 1
" Also for airline, show the buffers in a list of there's only one tab open.
let g:airline#extensions#tabline#enabled = 1
let g:airline_theme="hybrid"
let g:enable_italic_font = 1
let g:hybrid_transparent_background = 1
@tradingbills
tradingbills / ef1059.js
Created June 17, 2019 18:56
fb newsfeed post a share
// win10/_exer/_playground/queryString/index.js
const queryString = require('query-string');
const ef1059 = "https://graph.facebook.com/oauth/authorize?client_id=<client_id>&scope=read_insights,manage_pages,publish_pages,user_posts,publish_actions,publish_to_groups&redirect_uri=https://ui.benchmarkemail.com/FacebookAuthorize"
const myQs = ef1059.split('?');
console.log(queryString.parse(myQs[1], {arrayFormat: 'comma'}));

Pytest Introduction

Copyright 2019 - Matt Harrison

@__mharrison__