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
App failed to start | |
/disk1/home/slugs/145271_cde30b7_5ec6/mnt/.bundle/gems/gems/bundler-0.9.11/lib/bundler/runtime.rb:138:in `initialize': Read-only file system - /disk1/home/slugs/145271_cde30b7_5ec6/mnt/.bundle/environment.rb - Heroku has a read-only filesystem. See http://docs.heroku.com/constraints#read-only-filesystem (Errno::EROFS) | |
from /disk1/home/slugs/145271_cde30b7_5ec6/mnt/.bundle/gems/gems/bundler-0.9.11/lib/bundler/runtime.rb:138:in `open' | |
from /disk1/home/slugs/145271_cde30b7_5ec6/mnt/.bundle/gems/gems/bundler-0.9.11/lib/bundler/runtime.rb:138:in `write_rb_lock' | |
from /disk1/home/slugs/145271_cde30b7_5ec6/mnt/.bundle/gems/gems/bundler-0.9.11/lib/bundler/runtime.rb:10:in `initialize' | |
from /disk1/home/slugs/145271_cde30b7_5ec6/mnt/.bundle/gems/gems/bundler-0.9.11/lib/bundler.rb:77:in `new' | |
from /disk1/home/slugs/145271_cde30b7_5ec6/mnt/.bundle/gems/gems/bundler-0.9.11/lib/bundler.rb:77:in `load' | |
from /disk1/home/slugs/145271_cde30b7_5ec6/mnt/.bundle/gems/gems/bundler-0.9.11/lib/bundler.rb:6 |
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
var search = Titanium.UI.createSearchBar({}); | |
var tableView = Titanium.UI.createTableView({ | |
data:data, | |
search:search, | |
filterAttribute:'title', | |
autoHideSearch:false | |
}); | |
Titanium.UI.currentWindow.add(tableView); |
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
var search = Titanium.UI.createSearchBar({ | |
barColor:'#000', | |
showCancel:true, | |
height:43, | |
top:0 | |
}); | |
var tableView = Titanium.UI.createTableView({ | |
top:40, | |
data:{title:'Please perform a search'} |
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
% Scriptet SUPER simulerer køsystemet i et supermarked. | |
% | |
% Tidsintervallet mellem to kundeankomster, | |
% tiden for et indkøb (dvs. kundens indsamling af varer) og | |
% tiden for en kundeekspedition antages alle at være | |
% gamma(alfa,beta)-fordelte, men med forskellige alfa- og beta-parametre. | |
clear all; | |
% Vi definerer først nogle konstanter | |
% |
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 graph; | |
import java.util.*; | |
import GUI.GUIGraph; | |
public class DijkstraSearch { | |
static final HashMap<KrakNode, Double> dist = new HashMap<KrakNode, Double>(); | |
static final HashMap<KrakNode, KrakNode> previous = new HashMap<KrakNode, KrakNode>(); |
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 graph; | |
import java.util.*; | |
import GUI.GUIGraph; | |
public class DijkstraSearchHeuristics { | |
static final HashMap<KrakNode, Double> dist = new HashMap<KrakNode, Double>(); | |
static final HashMap<KrakNode, KrakNode> previous = new HashMap<KrakNode, KrakNode>(); | |
static final HashSet<KrakNode> hasVisited = new HashSet<KrakNode>(); |
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
private int[,] PossibleMoves(int x, int y) | |
{ | |
return new int[,] { {x + 2, y + 1}, | |
{x + 2, y - 1}, | |
{x - 2, y + 1}, | |
{x - 2, y - 1}, | |
{x + 1, y + 2}, | |
{x + 1, y - 2}, | |
{x - 1, y + 2}, | |
{x - 1, y - 2}, |
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
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); |
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 <stdlib.h> | |
#include <pthread.h> | |
#include <semaphore.h> | |
#include "list.h" | |
List *fifo; | |
int pro_count; | |
int con_count; |
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<stdlib.h> | |
#include <sys/time.h> | |
#include <pthread.h> | |
typedef struct state { | |
int *resource; | |
int *available; | |
int **max; | |
int **allocation; |
OlderNewer