The following lists will be implemented in any new language that I'd like learn. I'll apply TDD for everyone of these examples.
The following list:
- Calculator
- Sorting and Search algorithms
- Bubble sort
- Quick sort
- Merge sort
<!DOCTYPE html> | |
<html lang="en" dir="ltr" xmlns:fb="http://ogp.me/ns/fb#"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Camera and Video Control with HTML5 Example</title> | |
<style> | |
video { border: 1px solid #ccc; display: block; margin: 0 0 20px 0; } | |
#canvas { margin-top: 20px; border: 1px solid #ccc; display: block; } | |
</style> | |
</head> |
#include <stdio.h> | |
#include <sys/time.h> | |
//#include <rand.h> | |
/* Funcion prototipo */ | |
double tiempos(struct timeval , struct timeval ); | |
/* Funcion principal */ | |
int main(){ | |
int x; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>Crifrar</title> | |
<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/md5.js"></script> | |
<script> | |
function cifrar(word){ | |
hash = CryptoJS.MD5(word); | |
document.getElementById("pass").innerHTML = hash; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Your page title here :)</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.min.css"> | |
</head> | |
<body> | |
<div class="row"> |
{-# START_FILE {{name}}.cabal #-} | |
name: {{name}} | |
version: 0.1.0.0 | |
license: BSD3 | |
author: {{author-name}}{{^author-name}}Author name here{{/author-name}} | |
maintainer: {{author-email}}{{^author-email}}[email protected]{{/author-email}} | |
build-type: Simple | |
cabal-version: >=1.10 | |
library |
:set -package tasty-golden | |
:set -package blaze-html |
``` | |
Stack trace from the terraform-provider-pagerduty_v3.17.0 plugin: | |
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xe84165] | |
goroutine 85 [running]: | |
github.com/PagerDuty/terraform-provider-pagerduty/pagerduty.flattenIncidentWorkflowTrigger(0xc000012398?, 0xc0004374a0) | |
github.com/PagerDuty/terraform-provider-pagerduty/pagerduty/resource_pagerduty_incident_workflow_trigger.go:212 +0x85 | |
github.com/PagerDuty/terraform-provider-pagerduty/pagerduty.fetchIncidentWorkflowTrigger.func1() |