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
// Substitute this in the list of type definitions for ItemInfo | |
type ItemInfo struct { | |
NeweggItemNumber string | |
ItemNumber string | |
Title string | |
FinalPrice string | |
SpecificationGroupList []Specification | |
Feature map[string]string | |
} |
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
package error | |
import ( | |
"os" | |
"fmt" | |
"runtime" | |
"path/filepath" | |
) | |
// Handle an error for the calling function |
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
#define F_CPU 8000000UL | |
#include <avr/io.h> | |
#include <util/delay.h> | |
int main(void) { | |
// Set PB0 as an output | |
DDRB |= _BV(PORTB0); | |
for(;;) { | |
// Toggle the value of PB0 |
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
Score VLED ILED Ra Rb | |
0.003 3.50 0.0625 56.0 24.0 | |
0.015 3.49 0.0685 51.0 22.0 | |
0.021 3.48 0.0562 62.0 27.0 | |
0.022 3.51 0.0746 47.0 20.0 | |
0.040 3.47 0.0510 68.0 30.0 | |
0.086 3.58 0.0526 68.0 27.0 | |
0.094 3.59 0.0641 56.0 22.0 | |
0.102 3.59 0.0704 51.0 20.0 | |
0.107 3.40 0.0667 51.0 24.0 |
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
package error | |
import ( | |
"os" | |
"fmt" | |
"runtime" | |
"path/filepath" | |
) | |
// Handle an error for the calling function |
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
let rec exp_refs e = | |
match e with | |
Deref (al) -> al :: [] | |
| Neg (e1) -> exp_refs e1 | |
| Add (e1,e2) -> (exp_refs e1) @ (exp_refs e2) | |
| Eq (e1,e2) -> (exp_refs e1) @ (exp_refs e2) | |
| _ -> [] | |
;; | |
let rec active_locs c = |
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
package main | |
import ( | |
"fmt" | |
) | |
type Stack struct { | |
top *Element | |
size int | |
} |
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
//Binary Search Tree Program | |
#include<iostream> | |
#include<cstdlib> | |
#include<algorithm> | |
using namespace std; | |
class BinarySearchTree | |
{ | |
private: |
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
SELECT DISTINCT 'DELETE FROM ' + a.TABLE_NAME + ' WHERE PrimaryKeyColumn IN (SELECT PrimaryKeyColumn FROM @WhatToDelete)' | |
FROM INFORMATION_SCHEMA.COLUMNS a | |
JOIN INFORMATION_SCHEMA.TABLES b ON a.TABLE_NAME = b.TABLE_NAME | |
WHERE COLUMN_NAME LIKE 'PrimaryKeyColumn' AND b.TABLE_TYPE = 'BASE TABLE' |
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
#include <iostream> | |
#include <vector> | |
#include <time.h> | |
#include <omp.h> | |
using namespace std; | |
int SumPrimeFactors(int a) { | |
int s = 1; |