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
// PART 3 | |
static void metodo3(NotaAlumnoAsignatura [] a) | |
{ | |
int current = a[0].numAlumno; | |
double total = 0; | |
int nuNotas = 0; | |
try { | |
PrintWriter salida = new PrintWriter(new FileWriter("Notas.txt")); | |
for(int i = 0; i < a.lenght; ++i) { |
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
# Simulation created by Manuel Martinez-Almeida | |
# http://en.wikipedia.org/wiki/Coprime_integers | |
import fractions | |
import math | |
import random | |
def calculateProbability(end, steps): | |
count = 0 |
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 <stdbool.h> | |
#include <sys/time.h> | |
typedef struct _profile_buf { | |
const char *title; | |
unsigned long long total; | |
unsigned long long index; | |
struct timeval timestamp; | |
} profile_buf; |
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
#define DYNAMIC_CAST(__CLASS__, __OBJ__) ((__CLASS__*)([__OBJ__ isKindOfClass:[__CLASS__ class]] ? __OBJ__ : nil)) |
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> | |
void printDiagonals(int rows, int columns, int matrix[][columns]) | |
{ | |
int iterations = rows + columns - 1; | |
for(int i = 0; i < iterations; ++i) { | |
int x = (i >= columns) ? columns-1 : i; | |
int y = i-x; | |
do { |
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
package main | |
import "net/http" | |
import "time" | |
func main() { | |
http.HandleFunc("/ping", func1) | |
http.HandleFunc("/ping2", func2) | |
http.ListenAndServe(":8081", nil) |
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
package main | |
import ( | |
"fmt" | |
"github.com/gin-gonic/gin" // at 30ea9c06fc9cac893f10d6ad0847a510cf35aeaf | |
"time" | |
) | |
func main() { | |
r := gin.NewWithConfig(gin.Config{ |
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
package main | |
import ( | |
"fmt" | |
"math/rand" | |
"time" | |
) | |
var manos [][]int | |
var baraja []int |
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
**I'm submitting a ...** (check one with "x") | |
[ ] bug report | |
[ ] feature request | |
[ ] support request => Please do not submit support requests here, use the #go-git tag in stackoverflow. | |
**How would the same operation be performed using git from the command line terminal?** | |
<!-- Describe how the same operation can be performed sucessfully using the official git implementation --> | |
**Current behavior:** | |
<!-- Describe how the bug manifests. --> |
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
import { Component, Element, Event, EventEmitter, Listen, Method, Prop, PropDidChange } from '@stencil/core'; | |
/** | |
* GUIDE STYLE FOR STENCIL COMPONENTS | |
* - | |
*/ | |
@Component({ | |
tag: 'ion-something', | |
styleUrl: 'something.scss', | |
styleUrls: { |
OlderNewer