This file contains 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 <string> | |
#include <iostream> | |
using namespace std; | |
#define DEBUG | |
#define YYSTYPE string | |
string className = ""; | |
This file contains 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 <string> | |
#include <iostream> | |
using namespace std; | |
#define YYSTYPE string | |
#include "pyparser.tab.h" | |
%} |
This file contains 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 <cstdio> | |
#include <string> | |
#include <iostream> | |
using namespace std; | |
#define YYSTYPE string | |
#define YYERROR_VERBOSE 1 | |
#define DEBUG | |
This file contains 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 <string> | |
#include <iostream> | |
using namespace std; | |
#define YYSTYPE string | |
#include "pyparser.tab.h" | |
%} |
This file contains 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 First BrainFuck Experience | |
* * ============================== | |
* * Tried to build house | |
* * But | |
********* Stopped at this place | |
* * | |
* * | |
* * | |
* * |
This file contains 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 vkontakte | |
import json | |
import sqlite3 | |
import time | |
from pprint import pprint | |
def fill_db(db_name): | |
conn = sqlite3.connect(db_name) | |
c = conn.cursor() |
This file contains 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 | |
if [ $# -eq 0 ]; then | |
echo "Error!"; | |
else | |
for arg in $@; do | |
if [ $arg == "name" ]; then | |
echo `whoami`; | |
elif [ $arg == "time" ]; then | |
echo `date +"%S:%M:%H %m.%d.%Y"`; |
This file contains 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 | |
if [ $# -eq 0 ]; then | |
echo "Error!"; | |
else | |
for arg in $@; do | |
if [ $arg == "name" ]; then | |
echo "yaska"; | |
elif [ $arg == "time" ]; then | |
echo `date +"%S:%M:%H %m.%d.%Y"`; |
This file contains 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/perl | |
use Switch; | |
use strict; | |
use warnings; | |
if ($#ARGV eq -1) { | |
print "Error! No script to test.\n"; | |
print "Usage:\n check_hw.pl [script_to_test.pl]\n"; | |
exit(0); | |
} |
This file contains 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 | |
# Usage: | |
# copy this script into the folder with subtitles files | |
# | |
# chmod +x convert_subtitles.sh | |
# ./convert_subtitles.sh *.srt | |
backup="backup_cp1251_srt/"; |
OlderNewer