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 the total production capacity function | |
| def calculate_total_production(a, b, c, ex, ez): | |
| # Calculate X, Y, Z | |
| work_speed = 155 # 75+50+30 | |
| work_speed_nocturnal = 175 # 75+50+30+20 | |
| X = work_speed * 10 * a + work_speed_nocturnal * 5 * ex + work_speed * 3 | |
| Y = work_speed * 10 * b | |
| Z = work_speed_nocturnal * (10 * c + 3 * ez) |
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
| # http://lwn.net/Articles/655992/ | |
| # https://github.com/mfleming/bits/blob/master/python/bits/__init__.py | |
| import bits | |
| from ctypes import * | |
| mem = (c_char * 128).from_address(0xf1390) | |
| print bits.dumpmem(mem) | |
| # 00000000: 2f 68 6f 6d 65 2f 6a 6f 73 68 ... /home/josh... |
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
| # File: Makefile | |
| # Description: Makefile for building the example | |
| # Author: pcyu16 | |
| CC=gcc | |
| OBJS=main.o foo.o | |
| CFLAGS=-Wall -Wextra | |
| all: program |
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
| /** | |
| * set_operation.c | |
| * Author: pcyu16 | |
| */ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| #include <stddef.h> | |
| typedef int val_t; |
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 <stdio.h> | |
| #include <stdlib.h> | |
| int main(void) | |
| { | |
| #ifdef WIN32 | |
| system("pause"); | |
| #endif |
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 <stdio.h> | |
| #include <stdib.h> | |
| int main(void) | |
| { | |
| system("pause"); | |
| return 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
| #toggle_tab li:nth-child(3) | |
| { | |
| display : none; | |
| } |
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
| digraph G { | |
| compound=true; | |
| subgraph cluster0 { | |
| a -> b; | |
| a -> c; | |
| b -> d; | |
| c -> d; | |
| } | |
| subgraph cluster1 { | |
| e -> g; |
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 <string> | |
| using namespace std; | |
| class myString{ | |
| private: | |
| string data; | |
| public: | |
| myString(const string& s): data(s) |
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> | |
| using namespace std; | |
| template<class T> class Coor; | |
| template<class T> | |
| ostream& operator<< (ostream& out, const Coor<T>& obj); | |
| template<typename T> |
NewerOlder