Skip to content

Instantly share code, notes, and snippets.

stdClass Object
(
[accuracylevel] => ZIP
[parcelshops] => stdClass Object
(
[PakkeshopData] => Array
(
[0] => stdClass Object
(
[Number] => 97853
var elixir = require('laravel-elixir');
elixir(function(mix)
{
// LESS
mix.less([
// Bootstrap
'bootstrap.less',
$this->app->bind(
'Esub\Infrastructure\Data\Campaign\CampaignRepository',
function() {
return new CampaignCacheDecorator(App::make('Esub\Infrastructure\Data\Campaign\CampaignDb'));
}
);
@mewm
mewm / assignment.md
Created June 23, 2015 09:59
miinto dev assignment

#Assignment Spend a few hours starting a small blog application. The objective is not to finish the assignment, but just the overall idea and fundaments of the project. Feel free to use any tools of your likes, and feel free to use interfaces and psuedo code to cover the most trivial implementations (because you're probably already sick and tired of writing simple queries). By psuedo code, I mean that you don't have to spend time writing trivial code like CRUD operations from storage. You can simply just define the methods and write a small comments inside to elaborate its responsibility. This is for us to get an idea how you like to partition your code. Please add at least one unit test.

For example:

class Article
---
- hosts: papi_nodes
sudo: true
gather_facts: yes
vars_files:
- ../vars/local.yml
tasks:
- shell: ls -A /var/www/miinto-papi
register: papidir
roles:
@mewm
mewm / pretty_awesome_stuff.js
Last active January 8, 2019 14:52
omgz, look what awesome stuff you can do with eval() ! PS: NEVER EVER DO SOMETHING LIKE THIS!!!
function saveform()
{
var firstName = escapeSql(mainForm.elements.txtFirstName.value);
var lastName = escapeSql(mainForm.elements.txtLastName.value);
/* ... */
var offerCode = escapeSql(mainForm.elements.txtOfferCode.value);
var code =
' $cn = mssql_connect($DB_SERVER, $DB_USERNAME, $DB_PASSWORD) ' +
' or die("ERROR: Cannot Connect to $DB_SERVER"); ' +
@mewm
mewm / pulse.scss
Created August 13, 2015 12:51
Pulsing
@-webkit-keyframes pulse-animation {
0% { -webkit-transform: scale(1); }
50% { -webkit-transform: scale(1.5); }
100% { -webkit-transform: scale(1); }
}
.pulse {
-webkit-animation-name: 'pulse-animation';
-webkit-animation-duration: 2000ms;
-webkit-animation-iteration-count: infinite;
@mewm
mewm / sitecustomize.py
Created October 29, 2015 21:07
Fix SSL winrm error win2012 on mac el capitan default python 2.7 - create /Library/Python/2.7/site-packages/sitecustomize.py with the content below
import ssl
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
# Legacy Python that doesn't verify HTTPS certificates by default
pass
else:
# Handle target environment that doesn't support HTTPS verification
ssl._create_default_https_context = _create_unverified_https_context
<?php
$_flatArray = [];
$_nestedArray = [
[
'id' => 1,
'name' => 'A',
'subcategories' => [
[
'id' => 2,
@mewm
mewm / index.php
Created April 12, 2016 22:00
SOLID made simple
<?php
class ATM
{
public function __construct()
{
}
public function withdrawByCard()