$ pacman -Syu
$ pacman -Ss <PACKAGE NAME>
| session_name: ENV | |
| windows: | |
| - window_name: DEV | |
| panes: | |
| - cd Workspace | |
| - window_name: WORK | |
| panes: | |
| - cd Workspace | |
| - window_name: WORK | |
| panes: |
| #!/usr/bin/env python | |
| class QuickSort: | |
| """Quick sort implementation.""" | |
| def __init__(self, data): | |
| """Initialize array.""" | |
| self._array = data | |
| def partition(self, left, right): |
| from math import log10 | |
| from random import randint | |
| def get_digit(number, base, pos): | |
| return (number // base ** pos) % base | |
| def prefix_sum(array): | |
| for i in range(1, len(array)): | |
| array[i] = array[i] + array[i-1] | |
| return array |
| #include <stdio.h> | |
| void callback(void(*func)(char*), char *text){ | |
| (*func)(text); | |
| } | |
| void print(char* text) { | |
| printf("%s\n", text); | |
| } |
| import inspect | |
| print("LINE NUMBER:{} {}".format(__file__, inspect.getframeinfo(inspect.currentframe()).lineno)) | |
| # __file__ : shows current file name | |
| # inspect.getframeinfo(inspect.currentframe()).lineno: shows current line number |
| #import random, math | |
| outputdebug = False | |
| def debug(msg): | |
| if outputdebug: | |
| print msg | |
| class Node(): | |
| def __init__(self, key): |