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
__author__ = 'cascad' | |
import time | |
import logging | |
class Point: | |
defense_sort = 'df' | |
storm_sort = 'ef' |
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
from pprint import pprint | |
from time import sleep | |
import keyboard | |
import pyperclip | |
def get_from_clipboard(): | |
return pyperclip.paste() |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"reflect" | |
"time" | |
"github.com/streadway/amqp" | |
) |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"time" | |
"github.com/streadway/amqp" | |
) | |
var amqpUri = "amqp://guest:guest@192.168.56.101:5672/" |
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
// lab02 | |
package lab02 | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println("123") |
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
// lab02 | |
package lab02 | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println("123") |
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
// lab02 | |
package lab02 | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println("123") |
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
def is_pair(item): | |
if isinstance(item, list): | |
if len(item) == 2: | |
if isinstance(item[0], str): # and isinstance(item[1], list) | |
return True | |
return False | |
def is_pairs_list(item): | |
if isinstance(item, list): |
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
#coding:cp1251 | |
import logging | |
import smtplib | |
import os | |
import sys | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.base import MIMEBase | |
from email.mime.text import MIMEText |
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
def fuzz(a): | |
if a % 3 == 0 and a % 5 == 0: | |
return "Fizz Buzz" | |
elif a % 3 == 0: | |
return "Fizz" | |
elif a % 5 == 0: | |
return "Buzz" | |
else: | |
return str(a) |
NewerOlder