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
return _react2['default'].createElement( | |
'div', | |
{ className: 'menu' }, | |
_react2['default'].createElement( | |
'div', | |
{ className: 'venue-select ' }, | |
_react2['default'].createElement( | |
'div', | |
{ className: 'venue-name' }, | |
_react2['default'].createElement( |
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 -*- | |
# -------------------------------------------------------------------- | |
# test stuff | |
from optparse import OptionParser | |
import Image, ImageFont, ImageDraw, sys, codecs | |
if __name__ == "__main__": | |
parser = OptionParser() | |
parser.add_option("-l", "--label") |
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 soId = ''; | |
var soNumber = ''; | |
var toCartForm = new Array(); | |
var rec; | |
var today = new Date(); | |
today = new Date(today.getFullYear(), today.getMonth(), today.getDate(), 0, 0, 0, 0); | |
var tommorow = new Date(today.getFullYear(), today.getMonth(), (today.getDate()+1), 0, 0, 0, 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
convert(S) -> | |
convert(S, [], [], []). | |
convert([], Ip, Port, _) -> | |
{Ip, Port}; | |
%% ща будет порт | |
convert([$:|T], Ip, _Port, _Acc) -> | |
convert([], Ip, list_to_integer(T), []); | |
%% ща будет следующая цыфра | |
convert([$.|T], Ip, Port, _Acc) -> |
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
// Type C++ code here, or load an example. | |
#include <iostream> | |
int main(){ | |
std::cout << "aa"; | |
return 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
%% Consider | |
%% mod:func([A],{A,B},list(), any(), some_type({A,list(),B})) -> ok | error. | |
%% | |
%% Start from the beginning. Scan each character | |
%% | |
%% 1. Once we hit ":", we've got our module name, start looking for function | |
%% name. | |
%% 2. Once we hit "(", we've got our method name, start looking for arguments | |
%% 3. Arguments are a bit trickier | |
%% 3.1 If we encounter a "{", "[", "(" we don't care about anything |
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(plt_cache_server). | |
-behaviour(gen_server). | |
%%% | |
%%% Exports | |
%%% | |
%% | |
%% API | |
%% |
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
* VERSION 2012-07-24 | |
1. New search infrastructure | |
2. Code cleanup | |
3. OTP-biftab based PLT generation | |
4. Dialyzed | |
5. Web output cleaned-up | |
* Previous version: |
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
aliases :bp, :blog_post | |
class BlogPost < Nanoc::CLI::Commands::CreateItem | |
def run | |
# Check arguments | |
if arguments.length != 1 | |
raise Nanoc::Errors::GenericTrivial, "usage: #{command.usage}" | |
end | |
# Extract arguments and options |