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
Show hidden characters
{ | |
"cmd": ["javac", "$file"], | |
"file_regex": "^(...*?):([0-9]*):?([0-9]*)", | |
"selector": "source.java", | |
"shell": true, | |
"variants": | |
[ | |
{ | |
"name": "Run", | |
"cmd": ["javac", "${file}", "&", "java", "${file_base_name}"] |
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 pydot | |
def print_tree(tree): | |
g1 = pydot.Dot(graph_type='graph') | |
for i in range(len(tree)): | |
g1.add_edge(pydot.Edge(i, tree[i])) | |
g1.write_png('print_tree.png') |
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
/set options +JOINING_ENABLED +HISTORY_DISCLOSED | |
// https://support.skype.com/en/faq/FA10042/what-are-chat-commands-and-roles |
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
# What output you expect form this? | |
class Fooker(object): | |
def __init__(self, items = []): | |
self.items = items | |
def append(self, item): | |
self.items.append(item) | |
o = Fooker() |
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 pandas as pd | |
pd.DataFrame._repr_html_ = lambda self: self.to_html(classes='table table-striped') |
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=utf-8 | |
import requests | |
from bs4 import BeautifulSoup | |
from icalendar import Calendar, Event | |
from datetime import date, datetime, time, timedelta | |
def read_table(): | |
r = requests.get('http://lp.edu.ua/node/42?group=%D0%86%D0%A2%D0%9F-31%D0%B7&semestr=1') | |
#r.encoding = 'utf-8' |
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
var svg = d3.select(element[0]) | |
.append('svg') | |
.attr('width', '99%') | |
.attr('height', '99%') | |
.attr('style', 'border: 1px solid silver; position: absolute; top: 0px; left: 0px; z-index: 1001'); | |
var data = [] | |
var refresh = function () { | |
var joints = svg |
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
using System; | |
using System.Collections.Generic; | |
namespace TryRx | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Order.Paid.Subscribe(_ => Console.WriteLine("Paid")); |
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
module Bank | |
// Model | |
type Amount = decimal | |
type Balance = { | |
CurrentAmount: Amount | |
} | |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
TestEvents test = new TestEvents(); | |
var ff = new EventHandler<EventArgs>((s, e) => Console.WriteLine("Test")); | |
test.SomethingOccured += ff; | |
test.SomethingOccured += ff; |
OlderNewer