This file contains hidden or 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
| x-hbox, .x-hbox { | |
| display: flex; | |
| flex-direction: row; | |
| align-items: center; | |
| } | |
| x-hbox.top, .x-hbox.top { | |
| align-items: flex-start; | |
| } |
This file contains hidden or 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
| x-hbox, .x-hbox { | |
| display: flex; | |
| flex-direction: row; | |
| align-items: center; | |
| } | |
| x-hbox.top, .x-hbox.top { | |
| align-items: flex-start; | |
| } |
This file contains hidden or 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
| import re | |
| r"""Creates a simple tokenizer using the Python re module. | |
| Accepts a tokenizer 'spec' that is a dict of token types. Example: | |
| svg_path_tokenizer = tokenizer({ | |
| 'OP': { | |
| "match": r'[a-zA-Z]+', | |
| "type": str | |
| }, | |
| 'NUM': { |
This file contains hidden or 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
| @tool | |
| extends EditorScript | |
| class NodeVisitor: | |
| var root: Node | |
| func _init(nd: Node) -> void: | |
| root = nd | |
| func _iter_init(args: Array[Variant]) -> bool: |
This file contains hidden or 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
| function camelize(s) { | |
| const sa = s | |
| .replace(/[^\w\d\s]/g, '') | |
| .toLowerCase() | |
| .split(/\s+/); | |
| return sa | |
| .filter(v => !!v) | |
| .map((w, i) => (i > 0 ? w[0].toUpperCase() + w.substr(1) : w)) | |
| .join(''); |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import sys | |
| import argparse | |
| import glob | |
| import re | |
| import csv | |
| import dateutil | |
| def parse_args(): | |
| parser = argparse.ArgumentParser( |
This file contains hidden or 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
| ALTER PROCEDURE [dbo].[FindConversionErrorRow] | |
| @sql nvarchar(max) null | |
| AS | |
| BEGIN | |
| SET NOCOUNT ON; | |
| if @sql is null | |
| begin | |
| print 'usage: Must add a row number to each row in the query that is erroring out:' | |
| print ' select ROW_NUMBER() OVER(ORDER BY xxx) as rn, * fom BadView' |
This file contains hidden or 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
| CREATE OR ALTER PROCEDURE DiffObjects | |
| @o1 nvarchar(max), | |
| @o2 nvarchar(max) | |
| AS | |
| BEGIN | |
| SET NOCOUNT ON; | |
| if OBJECT_ID(@o1) is null | |
| begin | |
| select concat(@o1, ' does not exist') message |
This file contains hidden or 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
| x-hbox, .x-hbox { | |
| display: flex; | |
| flex-direction: row; | |
| align-items: center; | |
| } | |
| x-hbox.top, .x-hbox.top { | |
| align-items: flex-start; | |
| } |
This file contains hidden or 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
| # MIT License | |
| # | |
| # Copyright (c) 2022 Scott Means | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
NewerOlder