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
function permutation(n) { | |
if(n == 0 || n == 1) return 1; | |
if(f[n] > 0) return f[n]; | |
//console.log(n); | |
return f[n] = factorial(n-1) * n; | |
} | |
function permutation(n) { | |
var p = 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
//Finding users based on location publications | |
Meteor.publish('postsList', function(terms) { | |
if(can.viewById(this.userId)){ | |
var parameters = getPostsParameters(terms); | |
//posts = Posts.find(parameters.find, parameters.options); | |
//By default *the current? username, emails, and profile are published to the client. | |
parameters.find._id = { $ne: this.userId }; |
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
'use strict'; | |
var base = process.env.PWD; | |
var _ = require('lodash'); | |
module.exports = { | |
/** | |
* TODO: checkheader |
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 assert = require("assert"); // node.js core module | |
var should = require('should'); | |
var fs = require("fs"); | |
var base = process.env.PWD; | |
var Inserter = require("../../api/services/ratesimporter/Inserter.js"); | |
describe('Inserter', function () { | |
//describe('#changeHeader()', function(){ | |
//it('it should return serviceProvider csv when passed in flowroute provider', function(done){ |
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
{ | |
"snuid": "u16047198083", | |
"currency": 1, | |
"mac_address": "", | |
"display_multiplier": "1.0", | |
"id": "kash::f06fec3e-3760-4063-a123-ccf0fa5ee3e5", | |
"verifier": "bf321571ab7954fcc6d480db690c46f4", | |
"type": "kash", | |
"planBId": "u16047198083", | |
"used": false, |
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
855,"01/09/07 00:00:00","Gen Advice","Jan 10th @ 10am meeting with Mamie Hutt-Temoana | |
203 - 3102 Main Street, Vancouver","01/09/07 00:00:00","DP","" | |
3032,"11/30/07 00:00:00","285T1","Allowed? | |
","","DP","" |
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
'use strict'; | |
var React = require('react-native'); | |
var { | |
StyleSheet, | |
Text, | |
View, | |
TouchableWithoutFeedback, | |
} = React; | |
var styles = React.StyleSheet.create({ |
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 : mod_muc_room.erl | |
%%% Author : Alexey Shchepin <alexey@process-one.net> | |
%%% Purpose : MUC room stuff | |
%%% Created : 19 Mar 2003 by Alexey Shchepin <alexey@process-one.net> | |
%%% | |
%%% | |
%%% ejabberd, Copyright (C) 2002-2011 ProcessOne | |
%%% | |
%%% This program is free software; you can redistribute it and/or |
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
-spec room_jid_to_subject(RoomJID :: ejabberd:jid()) -> {ok, pid()} | {error, not_found}. | |
room_jid_to_subject(#jid{luser=RoomName, lserver=MucService}) -> | |
case mnesia:dirty_read(muc_online_room, {RoomName, MucService}) of | |
[R] -> | |
{ok, R#muc_online_room.name_host}; | |
[] -> | |
{error, not_found} | |
end. | |
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
case can_send_to_conference(From, StateData) of | |
true -> | |
?INFO_MSG("================PROCESS GROUPCHAT MES SAGE HELLO WORLD =============== ~p =====>", [Packet] ), | |
case length(erlang:binary_to_list(xml:get_tag_cdata(xml:get_subtag(Packet, <<"subject">>)))) > 0 of | |
true -> | |
?INFO_MSG("================ True =============== ~p =====>", []), | |
?INFO_MSG("================ True =============== ~p =====>", []), | |
?INFO_MSG("================ True =============== ~p =====>", []), | |
?INFO_MSG("================ True =============== ~p =====>", []); |
OlderNewer