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> | |
| //===================================================== | |
| // V1 : Wraper class of vector ( has vector ) | |
| //===================================================== | |
| template < class T , int dim > | |
| class MultiVector { | |
| public: |
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
| # python private/protected method test | |
| class MyClass: | |
| def __init__(self): | |
| self.publicMember1 = "Public Member" | |
| self._privateMember1 = "Private Member" | |
| self.__protectedMember1 = "Protected Member" | |
| def printPublic(self): | |
| print ("This is Public Method") |
Moved to https://github.com/qgp9/pssh
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
| #!/bin/bash | |
| com=${1:-"htop"} | |
| tname=mon | |
| twin=mon | |
| tnw=$tname:$twin | |
| tmux has-session -t $tname | |
| if [ $? != 0 ] | |
| then | |
| tmux new-session -s $tname -n $twin -d ssh -t a1 "$com" |
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
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use Getopt::Long 2.24, qw( :config bundling no_ignore_case no_auto_abbrev ); | |
| my ( $N, $EXT, @EXT, @USE, $DECODE, $ENCODE ); | |
| sub compile { eval shift } # defined early to control the lexical environment | |
| my $msglevel = 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
| 'use strict' | |
| /*================ Requires =====================================*/ | |
| //let utils = require( './utils' ); | |
| /*================ Class Variables/Constants ====================*/ | |
| let methods ; // Mandatory | |
| const CODE_STRING = '<<code>>'; | |
| let someClassVariable = 'someClassVariable'; | |
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
| function Happiness(t){ | |
| return t + "free"; | |
| } |