This file contains 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.config(function($httpProvider) { | |
$httpProvider.interceptors.push(function($rootScope, $location, $q) { | |
return { | |
'request': function(request) { | |
// if we're not logged-in to the AngularJS app, redirect to login page | |
$rootScope.loggedIn = $rootScope.loggedIn || $rootScope.username; | |
if (!$rootScope.loggedIn && $location.path() != '/login') { | |
$location.path('/login'); | |
} | |
return request; |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace MassTransit.AutomatonymousTests | |
{ | |
using System.Threading; | |
using Automatonymous; | |
using Magnum.Extensions; |
This file contains 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
marker { | |
stroke: #666; | |
fill: #666; | |
overflow: visible; | |
} | |
path.link { | |
fill: none; | |
stroke: #666; | |
stroke-width: 1.5px; |
This file contains 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 <assert.h> | |
#include <math.h> | |
#include <stdbool.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
typedef unsigned long long ullong; | |
typedef struct { | |
int count; |
This file contains 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
<?php | |
/* | |
error_reporting(E_ALL | E_STRICT); | |
Mage::setIsDeveloperMode(true); | |
ini_set('display_errors', 1); | |
*/ | |
require_once 'abstract.php'; |
This file contains 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 ServiceStack.OrmLite.CustomSqlServer | |
{ | |
public class CustomSqlServerOrmLiteDialectProvider : SqlServerOrmLiteDialectProvider | |
{ | |
public new static CustomSqlServerOrmLiteDialectProvider Instance = new CustomSqlServerOrmLiteDialectProvider(); | |
private const string VARIABLE_CHARACTER = "@"; | |
public void PrepareForInsertRowStatement(object objWithProperties, System.Data.IDbCommand command) | |
{ |
This file contains 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
CFLAGS = -Wall -g -std=gnu99 | |
LFLAGS = -R/usr/local/lib -lm | |
SHARED = -fPIC -shared | |
CC = gcc | |
DEPENDFILE = .dependencies | |
SRC = dups.c hashtable.c | |
SHSRC = | |
OBJ = $(SRC:%.c=%.o) | |
SHOBJ = $(SHSRC:%.c=%.so) |
This file contains 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 "bot_karl.h" | |
bool bot_karl_ready_to_work = false; | |
void intialize_bot_karl(pt_four_wins_ctx ctx) { | |
//printf("Bot Karl intialized\n"); | |
srand(time(NULL)); | |
bot_karl_ready_to_work = true; | |
} |
This file contains 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 <errno.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define EOL '\n' | |
#define DEFAULT_LINE_BUFFER_LENGTH 1024 | |
#define DEFAULT_LINE_BUFFER_INCREMENT DEFAULT_LINE_BUFFER_LENGTH |
This file contains 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 <errno.h> | |
#include <stdbool.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define DEFAULT_LINE_BUFFER_LENGTH 1024 | |
#define DEFAULT_LINE_BUFFER_INCREMENT DEFAULT_LINE_BUFFER_LENGTH | |
#define ARG_IS_NOT_SEARCH_WORD "-x" |
NewerOlder