Skip to content

Instantly share code, notes, and snippets.

View gildotdev's full-sized avatar
#BLM gildotdev

View GitHub Profile
let Hits = 0
let Health = 0
input.buttonB.onEvent(ButtonEvent.Down, function () {
if (Health == 1) {
network.onInfraredReceivedNumber(function (receivedNumber) {
gildotdev / README.MD
Last active October 31, 2018 20:57 — forked from samdenty/README.MD
VS Code CSS addition to increase readability on file tree.

How to install

Example of file tree

Custom CSS plugin

Install the custom CSS plugin, then make a file on your computer that will hold your custom CSS, I like to make one in my home directory called ~/.vsocde/vscodestyles.css and then add the CSS into it.

gildotdev / batch-file-examples.bat
Last active October 27, 2020 21:54
Just showing some basic examples of using a batch files and PowerShell scripts to run commands to help secure a Windows system
rem Guest account has been secured: 10 pts
rem Disable Guest Account
net user guest /active:no
rem A password of at least 8 characters is required: 10 pts
rem Set Minimum Password Length

Google has a number of non-standard fonts to use. The way the site works, you create a collection of fonts that you like. Google then gives you an HTML tag to put into your document that links to this collection, which then allows you to utilize the fonts through the font-family property, connecting to Google’s server for the font rather than looking on the user’s computer.

Find compatible colors

gildotdev /
Last active August 18, 2016 14:10
Make URL field-value pair parameters from a CSV file and append it to a base URL string
#!/usr/bin/env python
import sys
import csv
import re
import urllib
import argparse
def main():
gildotdev /
Created April 12, 2016 17:30 — forked from jfro/
Linode dynamic DNS updating script
# modified by jfro from
# Uses curl to be compatible with machines that don't have wget by default
WAN_IP=`curl -s`
if [ -f $HOME/.wan_ip.txt ]; then
gildotdev / gist:04761484f8c9461c83da
Created January 28, 2016 18:09 — forked from mhawksey/gist:1276293
Google App Script to insert data to a google spreadsheet via POST or GET - updated version as per
Copyright 2011 Martin Hawksey
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
Unless required by applicable law or agreed to in writing, software
gildotdev / setListInFormsFromSheets.js
Created January 22, 2016 21:35
Google Script to populate a list in Google Forms from Google Sheets
After any change in the sheet, update the combobox options in the Form
function onChange(e) {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];
var range = sheet.getDataRange();
var values = range.getValues();
var comboValues = []; // <-- cheddar will go here
// in this example we are interested in column 0 and discarding row 1 (the titles)
gildotdev / Shrink MSSQL log file
Created January 27, 2015 02:18
Shrinking a log file to a specified target size The following example shrinks the log file in the AdventureWorks2008R2 database to 1 MB. To allow the DBCC SHRINKFILE command to shrink the file, the file is first truncated by setting the database recovery model to SIMPLE.
USE ExampleDB;
-- Truncate the log by changing the database recovery model to SIMPLE.
-- Shrink the truncated log file to 1 MB.
func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {
var cell: UITableViewCell = tableView.dequeueReusableCellWithIdentifier(kCellIdentifier) as UITableViewCell
if cell == nil {
cell = UITableViewCell(style: UITableViewCellStyle.Subtitle, reuseIdentifier: kCellIdentifier)
var rowData: NSDictionary = self.tableData[indexPath.row] as NSDictionary
// Add a check to make sure this exists