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
import * as cdk from '@aws-cdk/core'; | |
import * as ddb from '@aws-cdk/aws-dynamodb'; | |
const USER_TABLE_NAME = 'Users'; | |
const PHOTO_TABLE_NAME = 'Photos'; | |
const COMMENT_TABLE_NAME = 'Comments'; | |
const LIKE_TABLE_NAME = 'Likes'; | |
const FOLLOW_TABLE_NAME = 'Follows'; | |
export class PhotoSharingStack extends cdk.Stack { |
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
import * as cdk from '@aws-cdk/core'; | |
import * as ddb from '@aws-cdk/aws-dynamodb'; | |
const TABLE_NAME = 'PhotoSharing'; | |
export class PhotoSharingStack extends cdk.Stack { | |
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
super(scope, id, props); | |
const table = new ddb.Table(this, TABLE_NAME, { |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApp | |
{ | |
public delegate void OnCloseEventHandler(Modal modal); |
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
// App | |
import { Component } from '@angular/core'; | |
@Component({ | |
selector: 'app', | |
template: '<span>{{ sayHello() }}</span>', | |
}) | |
export class App { | |
public name: string = 'John'; |
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
class CustomPosOrder(models.Model): | |
_inherit = 'pos.order' | |
pass | |
# Quiero implementar sobreescribir el metodo aqui en lugar de en CustomLegacyPosOrder | |
class CustomLegacyPosOrder(osv.osv): | |
""" | |
Made for overriding the odoo 8 pos.order _amount_all method, so that legal tip is included in total | |
""" |
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
using System; | |
using System.Net; | |
using System.Text.RegularExpressions; | |
/* | |
* Creado por: Diego Ivan Perez Michel | |
* Matricula: 2013-1488 | |
*/ | |
namespace Web | |
{ |
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
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
/* | |
* Interative binary search implementation | |
*/ | |
bool search(int value, int values[], int n) | |
{ | |
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
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
/* | |
* Interative binary search implementation | |
*/ | |
bool binary_search(int value, int values[], int n) | |
{ | |
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
/* | |
* Implementing Selection Sort. | |
*/ | |
void sort(int values[], int n) | |
{ | |
//while the list is out of order | |
for (int i = 0; i < n; i++) | |
{ | |
int smallest = values[i]; |