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
// This is the canonical layout file for the Quantum project. If you want to add another keyboard, | |
// this is the style you want to emulate. | |
#include "planck.h" | |
#ifdef BACKLIGHT_ENABLE | |
#include "backlight.h" | |
#endif | |
// Each layer gets a name for readability, which is then used in the keymap matrix below. | |
// The underscores don't mean anything - you can have a layer called STUFF or any other name. |
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
''' <summary> | |
''' Checks a customer product table to see if product dependencies are met | |
''' </summary> | |
''' <param name="customerProducts"></param> | |
''' <param name="isThrowError"></param> | |
''' <returns>Dictionary with key value pairs of product_ids</returns> | |
''' <remarks></remarks> | |
''' | |
Protected Function CheckProductPairings(ByVal customerProducts As DataSetApplication.CustomerProductDataTable, _ | |
Optional ByVal isThrowError As Boolean = True) As Dictionary(Of String, String) |
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
Public Function AddParamsFromList_GetParamsString(ByVal valuesList As List(Of String), ByVal columnName As String, ByRef sqlCommand As SqlCommand) As String | |
If Not valuesList.Count > 0 Then | |
Throw New Exception(String.Format("Invalid Argument: List is empty")) | |
End If | |
Dim _returnParamString As String = "" | |
For i As Integer = 0 To valuesList.Count - 1 | |
Dim _paramName As String = String.Format("@{0}{1}", columnName, i) | |
sqlCommand.Parameters.AddWithValue(_paramName, valuesList(i)) |
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
FRAMEBUFFER=/dev/fb0 startx |
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
import UIKit | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// Helper Function for checking contents of an array // | |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
extension Array{ | |
func contains<T: Comparable>(val: T) -> Bool{ | |
for x in self { |
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
import UIKit | |
class Thing { | |
var value : Int | |
init(v: Int) { | |
value = v | |
} | |
} | |
class ThingBST { |
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
import UIKit | |
class Thing { | |
var value : Int | |
init(v: Int) { | |
value = v | |
} | |
} | |
class ThingBST { |
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
class Vertice | |
attr_accessor :predecessor, :d, :name | |
def initialize(n) | |
@name = n | |
end | |
end | |
class Edge | |
attr_accessor :source, :destination, :w | |
def initialize(s,d,w) |
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
import UIKit | |
import XCPlayground | |
XCPSetExecutionShouldContinueIndefinitely(continueIndefinitely: true) | |
class Geocode { | |
var url : NSURL! | |
var request : NSURLRequest! | |
let queue : NSOperationQueue = NSOperationQueue() |
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
struct MapPoint { | |
var lat : Double = 0 | |
var long : Double = 0 | |
} | |
class DistanceCalculator { | |
var fromMP : MapPoint | |
var toMP : MapPoint | |
var fLat : Double! |
NewerOlder