Skip to content

Instantly share code, notes, and snippets.

View ReticentIris's full-sized avatar
🍵
Sipping tea.

ReticentIris

🍵
Sipping tea.
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include "linkedlist.h"
linkedList newLinkedList(int value){
linkedNode node = (linkedNode) malloc(sizeof(linkedNode));
node->value = value;
node->next = NULL;
return node;
def f(speedMax, speedBike, distance, delay):
n = 0
distance -= delay * speedBike
t = 5 / speedMax
distance -= t * speedBike
while distance < 0 and n < 10:
import java.util.Iterator;
import java.util.NoSuchElementException;
public class LinkedList<T> implements Iterable<T>{
private ListNode<T> front;
private int size = 0;
public LinkedList(){
front = null;
}
Global Variables:
//@font-size: 12
//@font-face: Arial
//@line-height: 18
//@begin-document
{header}
Header: Default Level 1
temp = '44.76 -67 87.5 0 12 86.89 90'.split(' '); #input().split(' ');
temp = sum(float(n) for n in temp) / len(temp);
temp = (5 / 9) * (temp - 32);
print (temp);
@ReticentIris
ReticentIris / problem 1.py
Created July 16, 2013 23:48
2008 problem 1
grades = input();
grades = grades.split(', ');
letters = [('A', 90), ('B', 75), ('C', 65), ('D', 60), ('F', 0)];
output = '';
for grade in grades:
for letter in letters:
if int(grade) >= letter[1]:
<?php
/**
* Canvas
*
* A super simple, super flexible forum.
*
* Released under the WTFPL.
* http://www.wtfpl.net/
*
@ReticentIris
ReticentIris / settings.php
Created July 12, 2013 02:23
testing a plugin lulz
<?php
/**
* Canvas
*
* A super simple, super flexible forum.
*
* Released under the WTFPL.
* http://www.wtfpl.net/
*
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
public class client {
public static void main(String[] args){
try {
Socket socket = new Socket("192.168.1.59", 666);
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;