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
| CALLBACKS = ( | |
| 'beforeRenders', | |
| 'beforeFrameRenders', | |
| 'afterRenders', | |
| 'afterFrameRenders', | |
| 'updateUIs', | |
| 'autolabels', | |
| 'filenameFilters', | |
| 'onCreates', | |
| 'onDestroys', |
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 <bits/stdc++.h> | |
| using namespace std; | |
| int main(int argc, char *argv[]) { | |
| vector<int> g1; | |
| for (int i = 1; i <= 10; i++) { | |
| g1.push_back(i * 10); | |
| } |
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
| import maya.OpenMayaMPx as ommpx | |
| import sys | |
| class Sample(ommpx.MPxCommand): | |
| kPluginCmdName = "foo" | |
| def __init__(self): | |
| ommpx.MPxCommand.__init__(self) |
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" | |
| // Board represents a surface we can work on | |
| type Board struct { | |
| NailsNeeded int | |
| NailsDriven 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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) | |
| func boring(msg string, c chan string) <-chan string { | |
| for i := 0; ; i++ { |
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
| class Node: | |
| """ | |
| This Node class has been created for you. | |
| It contains the necessary properties for the solution, which are: | |
| - text | |
| - next | |
| """ | |
| def __init__(self, data, value): | |
| self.data = data |
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
| class Node: | |
| """ This Node class has been created for you. | |
| It contains the necessary properties for the solution, which are: | |
| - text | |
| - next | |
| """ | |
| def __init__(self, name): | |
| self.name = name | |
| self.__next = 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
| class Node: | |
| """This Node class has been created for you. | |
| It contains the necessary properties for the solution, which are: | |
| - name | |
| - phone | |
| - next | |
| """ | |
| def __init__(self, name, phone): | |
| self.name = name |
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
| class Node: | |
| """This Node class has been created for you. | |
| It contains the necessary properties for the solution, which are: | |
| - name | |
| - matric | |
| - year | |
| - next""" | |
| def __init__(self, name, matric, year): | |
| self.name = name |
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
| from psycopg2.extras import DictCursor | |
| from psycopg2.pool import SimpleConnectionPool | |
| class Database: | |
| __pool = None | |
| @classmethod | |
| def initialize(cls, **kwargs): | |
| cls.__pool = SimpleConnectionPool(minconn=2, |