This file contains hidden or 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
pragma solidity ^0.4.20; | |
contract TodoList { | |
struct Todo { | |
uint256 id; | |
bytes32 content; | |
address owner; | |
bool isCompleted; | |
uint256 timestamp; |
This file contains hidden or 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'; | |
angular.module('ngCart', ['ngCart.directives']) | |
.config([function () { | |
}]) | |
.provider('$ngCart', function () { |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <limits.h> | |
/* A binary tree node has data, pointer to left child | |
and a pointer to right child */ | |
struct node | |
{ | |
int data; | |
struct node* left; |
This file contains hidden or 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
<?php | |
$result = array(); | |
function getSku($key, $params) | |
{ | |
$rv = array(); | |
$i = count($params); | |
while (0 < $i--) { | |
array_unshift($rv, $params[$i][$key % count($params[$i])]); | |
$key = (int) ($key / count($params[$i])); | |
} |