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
+++++ +++++ initialize counter (cell #0) to 10 | |
[ set the next four cells to 70 100 30 and 10 respectively | |
> +++++ ++ add 7 to cell #1 | |
> +++++ +++++ add 10 to cell #2 | |
> +++ add 3 to cell #3 | |
> + add 1 to cell #4 | |
<<<< - decrement counter (cell #0) | |
] | |
> ++ . print 'H' (H = ASC (72)) |
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
+++++ +++ | |
[ | |
> +++++ + | |
< - | |
] | |
>>> | |
,. | |
[ | |
[<]<+ | |
>>[>] |
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
,. | |
[ | |
[<]<+ | |
>>[>] | |
,. | |
] | |
<[ | |
[-------- -------- | |
-------- -------- .>] |
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
, | |
[ | |
[<]<+ | |
>>[>] | |
, | |
] | |
< | |
[.<] |
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
,. | |
[ | |
[<]<+ | |
>>[>] | |
,. | |
] | |
+++++ +++++ | |
[ |
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 time | |
import numba | |
from numba import jit | |
import numpy as np | |
#input matrices | |
matrix1 = np.random.rand(30,30) | |
matrix2 = np.random.rand(30,30) | |
rmatrix = np.zeros(shape=(30,30)) |
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
#GUI: Sample Program - Increment | |
import Tkinter | |
window = Tkinter.Tk() | |
window.title("Button_Label") | |
num = 0 | |
#callback : function for changing label | |
def increment(): |
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
# The preamble | |
set ns [new Simulator] ;#initialise the simulation | |
# Predefine tracing | |
set f [open out.tr w] | |
$ns trace-all $f | |
set nf [open out.nam w] | |
$ns namtrace-all $nf | |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Google Realtime Quickstart</title> | |
<!-- Load Styles --> | |
<link href="https://www.gstatic.com/realtime/quickstart-styles.css" rel="stylesheet" type="text/css"/> | |
<!-- Load the Realtime JavaScript library --> | |
<script src="https://apis.google.com/js/api.js"></script> |
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
clear | |
echo -e "\e[1;4mI LOVE SHELL SCRIPTING!!\n" | |
echo -e "WELCOME \033[31m$USER to $HOSTNAME" | |
$ echo -e "\033[7m Linux OS! Best OS!! \033[0m" | |
echo "Today is `date`" | |
val=`expr 6 + 3` | |
echo "six plus three is $val" | |
echo "What is your full name?" | |
read fname | |
echo "Hello $fname, my buddy!" |
OlderNewer