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
#include <stdio.h> | |
union test { | |
unsigned char a; | |
unsigned short b; | |
unsigned int c; | |
unsigned int d; | |
unsigned long e; | |
}; |
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
// | |
// main.c | |
// Threading | |
// | |
#include <stdio.h> | |
#include <unistd.h> | |
#include <pthread.h> |
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 Foundation | |
///the led information | |
struct LED{ | |
let voltageDrop :Float! | |
let currentDrawn :Float! | |
let image :String = "-|>|-" | |
init(voltageDrop: Float, currentDrawn: Float){ | |
self.voltageDrop = voltageDrop |
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
// | |
// main.c | |
// Sad Cycle | |
// | |
// http://www.reddit.com/r/dailyprogrammer/comments/36cyxf/20150518_challenge_215_easy_sad_cycles/ | |
#include <stdio.h> | |
#include <math.h> | |
#include <stdlib.h> | |
#include <string.h> |
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
from math import * | |
#get the input numbers and returns them as a list | |
def inputget(): | |
#get a string of input, and separate it into numbers | |
inputs = input("Enter numbers separated by spaces: ").split(' ') | |
#create an empty list | |
output_int = [] |
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
// | |
// main.c | |
// Standard Deviation | |
// | |
// | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> |
NewerOlder