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
cnt = int(input()) | |
strings = [] | |
for _ in range(cnt): | |
strings.append(input()) | |
def bracket_check(context): | |
brack_closed = { | |
')': '(', | |
'}': '{', |
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
from social.pipeline.partial import partial | |
from django.core.urlresolvers import reverse | |
from django.shortcuts import render, render_to_response | |
@partial | |
def get_user_extra(strategy, backend, response, details, is_new=False, *args, **kwargs): | |
from IPython import embed; embed() |
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
function ampmToTime(s){ | |
var s = s.toString(); | |
if(s.split(' ').length < 2){ | |
var h = s.split(':')[0]; | |
var m = s.split(':')[1]; | |
return h + ":" + m; |
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
import random | |
record = [('gawi', 0)] | |
def show_me_the_hand(records): | |
results = [] | |
if len(records) == 0: | |
t = random.randint(0, 1000) |
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
import player | |
import player2 | |
r1 = [] | |
r2 = [] | |
for i in range(1000): | |
h1 = player.show_me_the_hand(r2) | |
h2 = player.show_me_the_hand(r1) |
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
'use strict'; | |
Object.defineProperty(exports, '__esModule', { | |
value: true | |
}); | |
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | |
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; |
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
/* | |
* Javascript EXIF Reader 0.1.4 | |
* Copyright (c) 2008 Jacob Seidelin, [email protected], http://blog.nihilogic.dk/ | |
* Licensed under the MPL License [http://www.nihilogic.dk/licenses/mpl-license.txt] | |
*/ | |
var EXIF = {}; | |
(function() { |
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
var React = require('react'); | |
var HeaderContainer = React.createClass({ | |
render: function(){ | |
// box surrounds header container | |
var headerBox = { | |
width: '100%', | |
height: 126, | |
paddingTop: '2.125em', |
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
var React = require('react'); | |
var Test = React.createClass({ | |
render: function(){ | |
var submitButton = { | |
width: "100%", | |
height: "50px", | |
border:"none", |
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
def make_number_comma(number): | |
number_to_str = str(number) | |
len_number = len(number_to_str) | |
if len_number > 3: | |
result = "" | |
for idx, num in enumerate(number_to_str[::-1]): | |
result += num | |
if idx % 3 == 2 and idx < len_number-1: | |
result += "," |