This file contains 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
namespace MyMvcApplication | |
{ | |
class DbQueries : IDisposable | |
{ | |
protected TimeShedulerEntities Context { get; private set; } | |
public DbQueries() | |
{ | |
this.Context = new TimeShedulerEntities(); | |
} |
This file contains 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 python2 | |
# Demonstration for host to use the hostname to determine which property of the | |
# Field is "mine" | |
import socket | |
from geometry_msgs.msg import Pose2D | |
from bh_vision.msg import Field | |
hosts = {'BECKHAM': '1', |
This file contains 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
<?php | |
$emailvalid = null; //your email error | |
$passlength = null; //your password length error | |
$passmatch = null; //your password match error | |
$overallerror = null; //overall error ("Verification" below) | |
if ($_GET['submit'] == "true") { | |
try { |
This file contains 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 | |
""" | |
Creates a BOM spreadsheet with updating pricing from Octopart using the custom | |
'Part No.' field on schematic components | |
""" | |
import sys, argparse, time, math, webbrowser, os | |
import json, urllib.parse, urllib.request | |
import xml.etree.ElementTree as ET |
This file contains 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
#!/bin/bash | |
# purpose: to compress my home folder | |
#output folder for the files | |
OUTPUTDIR="/media/My Book/HomeFolderBackup/" | |
#number of compressing process | |
NPROC=6 | |
This file contains 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
using System; | |
using System.Linq; | |
using System.Dynamic; | |
using System.Collections.Generic; | |
namespace Expando | |
{ | |
public delegate string ToStringFunc(); | |
class ToStringExpandoObject : DynamicObject |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ETP | |
{ | |
/// <summary> |
This file contains 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 python2 | |
# Random placement helpers because I'm tired of using spreadsheets for doing this | |
# | |
# Kevin Cuzner | |
import math | |
from pcbnew import * | |
def place_circle(refdes, start_angle, center, radius, component_offset=0, hide_ref=True, lock=False): |
OlderNewer