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
int max(int a, int b) { | |
return (a > b ? a : b); | |
} | |
class Solution { | |
public: | |
int withIndex(string s, int start_index, int end_index) { | |
//base case | |
if(end_index == start_index) | |
return 1; |
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
wallet = ShatootWallet(inst_id, campaign_id, mr_endpoint, mr_username, mr_password) | |
print ">>>> getting balance: " | |
print(wallet.get_balance(sample_card['pan'], sample_card['pin'], sample_card['expiration_date'], sample_card['cvv2'])) | |
print ">>>> purchase with amount : 800" | |
stan = 1835 | |
purchase_time = time.strftime('%H%M%S') | |
purchase_date = datetime.today().strftime("%m%d") |
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 ir.faash.citypay.shatootb2b; | |
import java.net.Socket; | |
import java.nio.charset.Charset; | |
import java.text.DateFormat; | |
import java.text.SimpleDateFormat; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Calendar; |
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
RSA_MODULUS = 2939168910404070122697603813093909793263109806617659222300833934472873063606710735512663669578692239193468283332478923652936617733826530533960946791805249578906172108658320228528853664354272939707169046 1827472072802681555945912674603454639305049232939591413710389514042552015926040420337324349836651478578742032468486794702225168124236959475004608717515817224356032831343420786556737235258749082756749843 2481626908185503509641031103350540831597324004819671411274464766466855703469673238436555148293699291046822389035746480351005372791474761869606445603604690561721164432790978765842216747206128649251372113 89752447257 | |
RSA_EXPONENT = 257 |
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
if (currentState) | |
{ | |
currentState.scrollTo=-10; | |
var filterUrlTitle=getFilterUrlTitle(lastFilters); | |
var queryStrings="?"+generateUrlParams(); | |
console.log(currentCat.getPath(filterUrlTitle) + queryStrings); | |
History.replaceState(currentState.data,document.title,currentCat.getPath(filterUrlTitle, true) + queryStrings); | |
} |
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
then(function (tokens) { | |
var okTokens = []; | |
for (var j = 0; j < searchSubscribes.length; j++) { | |
okTokens.push(searchSubscribes[j].token); | |
} | |
globalStorage.set('subscription_tokens', okTokens); |
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
File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 226, in wrapper | |
fn(*args, **kwargs) | |
File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/runserver.py", line 109, in inner_run | |
autoreload.raise_last_exception() | |
File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 249, in raise_last_exception | |
six.reraise(*_exception) | |
File "/usr/local/lib/python2.7/dist-packages/django/utils/autoreload.py", line 226, in wrapper | |
fn(*args, **kwargs) | |
File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup | |
apps.populate(settings.INSTALLED_APPS) |
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
* | |
* SCHED_OTHER_RR scheduling class. Implements a round robin scheduler with no | |
* priority mechanism. | |
*/ | |
/* | |
* Update the current task's runtime statistics. Skip current tasks that | |
* are not in our scheduling class. | |
*/ | |
static void update_curr_other_rr(struct rq *rq) |
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
* | |
* SCHED_OTHER_RR scheduling class. Implements a round robin scheduler with no | |
* priority mechanism. | |
*/ | |
/* | |
* Update the current task's runtime statistics. Skip current tasks that | |
* are not in our scheduling class. | |
*/ | |
static void update_curr_other_rr(struct rq *rq) |
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
* | |
* SCHED_OTHER_RR scheduling class. Implements a round robin scheduler with no | |
* priority mechanism. | |
*/ | |
/* | |
* Update the current task's runtime statistics. Skip current tasks that | |
* are not in our scheduling class. | |
*/ | |
static void update_curr_other_rr(struct rq *rq) |
NewerOlder