Welcome to your very own Unexpected San Francisco Box ™. This is something your idiot engineer friend made up. Sharing culture with deep PA. Play along.
- Four CA local cheeses
some_loop() -> | |
receive | |
case -> | |
handle, | |
some_loop(); | |
case -> | |
handle, |
chunk(List) -> | |
part(List, []). | |
chunk([], Acc) -> | |
lists:reverse(Acc); | |
chunk([H], Acc) -> |
/* code blatantly stolen from @asterick */ | |
(function chicken() { | |
function textNodesUnder(el, transform){ | |
var n, a = [], walk = document.createTreeWalker(el,NodeFilter.SHOW_TEXT,null,false); | |
while (n=walk.nextNode()) { transform(n); } | |
} | |
textNodesUnder(document.body, function (el) { |
So, instead of requiring your customers to recite their passwords to unidentifiable strangers over the telephone, you could use a randomly generated PIN instead. Then, you could present that PIN inside the customer's account, where they could read it out to you.
This carries all the advantages of making sure the person you're speaking with has their password, but with none of the downsides, such as giving the password to a customer service member in plain text (thereby allowing them to write it down,) or giving your customer service staff a mechanism to test whether customer passwords
%% teaching the use of a testing library. bad code, do not use or judge | |
-module(vlp). | |
-export([ | |
square/1 | |
]). | |
square(7) -> -2; |
-module(vlp_tests). | |
-compile(export_all). | |
-include_lib("proper/include/proper.hrl"). | |
-include_lib("eunit/include/eunit.hrl"). | |
square_test_() -> | |
{ "Square test", [ |
-module(vlp_tests). | |
-compile(export_all). | |
-include_lib("proper/include/proper.hrl"). | |
-include_lib("eunit/include/eunit.hrl"). | |
'use strict'; | |
/* global angular */ | |
var app = angular.module('playground', []); | |
app.directive('showBetweenHours', function () { | |
return { | |
restrict: 'AC', | |
link: function (scope, element, attrs) { |
var Pricers = { | |
"us": { cur: "$", price: function(Slots) { return (Slots*10)+10; } }, | |
"ru": { cur: "E", price: function(Slots) { return Slots*0.5; } } | |
}; | |
function curFmt(Cur, X) { return Pricers[Cur].cur + X.toString(); } | |
function price(Cur, Amt) { return curFmt(Cur, Pricers[Cur].price(Amt)); } |