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
https://www.reddit.com/r/gifs/comments/5ydqsz/tropical_storm_in_vietnam_wait_for_it ## Люди в конце немного не соотносятся с размером) | |
http://pikabu.ru/story/reka_indigirka_4893866 ## Еще немного природы | |
https://www.reddit.com/r/gifs/comments/60g52w/snowy_afternoon/ ## ) | |
https://www.reddit.com/r/gifs/comments/62njfx/this_bunny_was_found_half_frozen_and_had_lost_the/ ## половинка зайчика |
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/python | |
# -*- coding: utf-8 -*- | |
from collections import deque | |
import logging | |
import sys | |
## | |
text = list('10110110') | |
key = list('1111111100') |
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/python | |
import psycopg2 | |
def main(): | |
conn = psycopg2.connect(database='assa', user='assa', password='assa', host='192.168.56.120', port='5432') | |
conn.autocommit = True | |
cur = conn.cursor() | |
cur.execute("select 1") |
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/python | |
# -*- coding: utf-8 -*- | |
import copy | |
import sys | |
from pprint import pprint | |
max = 16 | |
graf = {1: {4: 3, 'v': 1}, 2: {5: 1, 'v': 3}, 3: {13: 3, 'v': 2}, |
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/python | |
# -*- coding: utf-8 -*- | |
import copy | |
import sys | |
from pprint import pprint | |
max = 16 | |
graf = {1: {4: 3, 'v': 1}, 2: {5: 1, 'v': 3}, 3: {13: 3, 'v': 2}, |
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 | |
## Default | |
ignore_errors='no' | |
## Default | |
usage() { | |
cat<<HELP | |
SYNOPSIS | |
$0 [ OPTIONS ] |
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 python | |
# -*- coding: utf-8 -*- | |
from pprint import pprint | |
inp = [ | |
{ | |
'type': 'input', | |
'result': ['a','b','c','d'] | |
}, |
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
class Dashing.Pixel extends Dashing.Widget | |
# ready: -> | |
# setInterval(@startCountdown, 2000) | |
# startCountdown: => | |
# $("#table1").toggle() | |
# $("#table2").toggle() | |
# onData: (data) -> | |
# if data.rows1 |
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
class Dashing.Table extends Dashing.Widget | |
# ready: -> | |
# setInterval(@startCountdown, 2000) | |
# startCountdown: => | |
# $("#table1").toggle() | |
# $("#table2").toggle() | |
# onData: (data) -> | |
# if data.rows1 |
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
class Dashing.Alllist extends Dashing.Widget | |
onData: (data) -> | |
@_checkStatus(data.widget_class) | |
_checkStatus: (status) -> | |
$(@node).removeClass('failed pending passed') | |
$(@node).addClass(status) | |
ready: -> | |
if @get('unordered') | |
$(@node).find('ol').remove() |
NewerOlder