I hereby claim:
- I am andela-mfalade on github.
- I am mayor (https://keybase.io/mayor) on keybase.
- I have a public key whose fingerprint is 1AA1 A07E 9457 CB44 88AA F45C E5BC DE71 DBB8 9BD6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
angular.module('cerqma.services') | |
.factory('Equipments', ['$http', '$rootScope', '$state', | |
'API_PREFIX', | |
function ($http, $rootScope, $q, $state, API_PREFIX) { | |
// Response Handler | |
function returnResponse(res) { | |
return res.data; | |
} | |
function all(filter) { |
(function( $ ){ | |
$.fn.formalize = function(options){ | |
var settings = $.extend({ | |
section: 'fieldset', | |
wrapper: '.form-section', | |
navType: 'section', | |
prevNav: '.form-nav-prev', | |
nextNav: '.form-nav-next', | |
timing: 0, | |
nextCallback: null, |
class Singleton: | |
the_actual_instance = None | |
class _Singleton: | |
def __init__(self): | |
self.name = 'mayor' | |
print('this should only be printed once.. i.e this class should only be instantiated once.') | |
def create_room(self, room_name): | |
print 'I see you are trying to create a new room ', room_name |
class Singleton: | |
the_actual_instance = None | |
class _Singleton: | |
""" | |
The actual implementation of the Singleton class should reside here | |
""" | |
def __init__(self): | |
self.name = 'mayor' | |
print('this should only be printed once.. i.e this class should only be instantiated once.') |
class Andela: | |
fellows = 'top .5 percent in Nigeria' | |
fellow_list = [1,2,3,4,5] | |
@staticmethod | |
def say_the_chant(): | |
print "Andela Aww Yea!!!!" | |
class Andela: | |
fellows = 'top .5 percent in Nigeria' | |
fellow_list = [1,2,3,4,5] | |
@staticmethod | |
def say_the_chant(): | |
print "Andela Aww Yea!!!!" | |
function getLabelForValue(n) { | |
return function(divisor) { | |
var labelMapping = { | |
3: 'foo', | |
5: 'bar' | |
}; | |
if (n && n % divisor === 0 ) { | |
return labelMapping[divisor]; | |
} | |
return null; |
function csv(text) { | |
var p = '', row = [''], ret = [row], i = 0, r = 0, s = !0, l; | |
for (l in text) { | |
l = text[l]; | |
if ('"' === l) { | |
if (s && l === p) row[i] += l; | |
s = !s; | |
} else if (',' === l && s) l = row[++i] = ''; | |
else if ('\n' === l && s) { | |
if ('\r' === p) row[i] = row[i].slice(0, -1); |
#### Models | |
user: | |
fields: | |
id: | |
type: string | |
required: true | |
requestType: | |
type: string | |
enum: [first-user, new-user, client-vip] | |
required: true |