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
| # -*- coding: utf-8 -*- | |
| def foo(a, b="B", c=[], *args, **kwargs): | |
| print(a, b, c) | |
| if not args: | |
| print("No *args passed") | |
| else: | |
| print(args) |
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
| When blender crashes |
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 <string> | |
| #include <algorithm> | |
| #include <iterator> | |
| #include <cstdlib> | |
| int main(int argc, char* argv[]) | |
| { | |
| using namespace std; |
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; | |
| enum class TrafficLight { green, yellow, red }; | |
| TrafficLight& operator++(TrafficLight& light) { | |
| switch (light) { | |
| case TrafficLight::green: | |
| return light = TrafficLight::yellow; |
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 <iomanip> | |
| #include <type_traits> | |
| #include <typeinfo> | |
| #include <typeindex> | |
| class A { }; | |
| class A1 { char 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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| int argcorig = 0; | |
| char **argvorig = NULL; | |
| char **envorig = NULL; | |
| char **arg = NULL; | |
| char **env = NULL; | |
| typedef void (*exitcallback) (); |
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> | |
| #include <string.h> | |
| int main(int argc, char *argv[]) | |
| { | |
| char **arg = argv + argc -1; | |
| while(arg > argv) { | |
| char *sptr = *arg + strlen(*arg) - 1; |
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> | |
| typedef struct Node | |
| { | |
| int info; | |
| struct Node *link; | |
| } Node; | |
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> | |
| int main(int argc, char *argv[]) | |
| { | |
| printf("argc=%d program name=[\"%s\"]\n", argc, argv[0]); | |
| printf("%d \n", argc == ((argv + argc) - argv) ); | |
| if (argc < 2) { |
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 <string.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| char *ntsp = "Hello"; | |
| // Printing null-terminated strings | |
| { |