Skip to content

Instantly share code, notes, and snippets.

View simonwh's full-sized avatar

Simon Westh Henriksen simonwh

  • Copenhagen, Denmark
  • 11:28 (UTC +02:00)
View GitHub Profile
<html i18n-values="dir:textdirection" subframe="" dir="ltr"><head>
<meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0, user-scalable=no">
<title i18n-content="title">https://cms.tourdynamics.com/StartUserSession.aspx?k=%2BNy0JPU0EflBc8t0kMg19bcuW0vUNRdotHsSo9aa2ZpQq7nQ1jC6sOw1D5K2v8gwz9vLQXpZ00UJu6NY/bNTmWEKfm6FEpC21aiSgY2tZT%2Bg3hWzYjfD7GKikLkwz6PA er ikke tilgængelig</title>
<style>
body {
background-color: #E6E6E6;
font-family: Helvetica, Arial, sans-serif;
font-size: 10pt;
module ActionController
module Flash
extend ActiveSupport::Concern
included do
delegate :alert, :notice, :error, :success, :to => "request.flash"
helper_method :alert, :notice, :error, :success
end
protected
class DeviseCreateUsers < ActiveRecord::Migration
def self.up
create_table(:users) do |t|
## Database authenticatable
t.string :email, :null => false, :default => ""
t.string :encrypted_password, :null => false, :default => ""
## Recoverable
t.string :reset_password_token
t.datetime :reset_password_sent_at
Contents of your deploy log:
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
* executing "if [ -d /var/deploy/club_guide_sao_paulo/web_head/shared/cached-copy ]; then cd /var/deploy/club_guide_sao_paulo/web_head/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard 58f773dd24831bf05976df213eeda04c064a3c3e && git clean -q -d -x -f; else git clone -q -b deploy git@github.com:f3ng3r/clubguide.git /var/deploy/club_guide_sao_paulo/web_head/shared/cached-copy && cd /var/deploy/club_guide_sao_paulo/web_head/shared/cached-copy && git checkout -q -b deploy 58f773dd24831bf05976df213eeda04c064a3c3e; fi"
servers: ["198.199.83.221"]
[198.199.83.221] executing command
command finished in 1762ms
all: fifo
OBJS = list.o main.o
LIBS= -lpthread
fifo: main.o ${OBJS}
gcc -o $@ ${LIBS} ${OBJS}
listtest: listtest.o
gcc list.c listtest.c -o listtest ${LIBS}
all: fifo
OBJS = list.o main.o
LIBS= -lpthread
fifo: main.o ${OBJS}
gcc -o $@ ${LIBS} ${OBJS}
listtest: listtest.o
gcc list.c listtest.c -o listtest ${LIBS}
@simonwh
simonwh / banker.c
Created October 30, 2012 12:03
Homeworkz
#include<stdio.h>
#include<stdlib.h>
#include <sys/time.h>
#include <pthread.h>
typedef struct state {
int *resource;
int *available;
int **max;
int **allocation;
#include<stdio.h>
#include<stdlib.h>
#include <sys/time.h>
#include <pthread.h>
typedef struct state {
int *resource;
int *available;
int **max;
int **allocation;
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <semaphore.h>
#include "list.h"
List *fifo;
int pro_count;
int con_count;
@simonwh
simonwh / AsyncSocketsClient.cs
Created December 7, 2011 16:58
Async sockets
namespace Descent.Messaging.AsyncSockets
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
public delegate void MessageReceivedHandler(ClientInfo clientInfo, string message);