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
-- controls if a player is controllable with input. | |
-- other multiplayer clients are not controllable. | |
go.property("controllable", true) | |
-- ------------------------------------------------------------ | |
-- needed only by the authority. The client moves via messages. | |
-- ------------------------------------------------------------ | |
--#IF HEADLESS | |
local moving_x = 0 | |
local moving_y = 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
local ColyseusClient = require "colyseus.client" | |
local client | |
local room | |
-- {"8dh34=fg" = "/gameobject1"} | |
local players_gameobjects = {} | |
-- --------------- | |
-- LOCAL FUNCTIONS |
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
@rpc("any_peer") | |
func fire(): | |
var sender_id = multiplayer.get_remote_sender_id() | |
var sender = get_node("/root/Multiplayer/SpawnPoint/" + str(sender_id)) | |
var b = bullet.instantiate() | |
b.name = str(sender_id) + str(seq) | |
seq += 1 | |
b.transform = sender.transform | |
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
<?php | |
/** | |
* Reverse Proxy Configuration: | |
* | |
* Reverse proxy servers are often used to enhance the performance | |
* of heavily visited sites and may also provide other site caching, | |
* security, or encryption benefits. In an environment where Drupal | |
* is behind a reverse proxy, the real IP address of the client should | |
* be determined such that the correct client IP address is available |
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
execute pathogen#infect() | |
syntax on | |
set ruler " show the line number on the bar | |
set more " use more prompt | |
set autoread " watch for file changes | |
set number " line numbers | |
set autoindent smartindent " auto/smart indent | |
set smarttab " tab and backspace are smart | |
filetype on " Enable filetype detection |
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
(function(window, document, $) { | |
'use strict'; | |
if ( ! String.hasOwnProperty('hashCode') ) { | |
/** | |
* returns a hash code from a base string | |
* @return {string} | |
*/ | |
String.prototype.hashCode = function() { | |
var hash = 0, i, chr, len; |
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
#!/bin/bash | |
# create Dev Machine structure | |
function createStructure { | |
# TODO | |
# 1- check existing folders | |
# 2- ask user for overwriting | |
if [ -d manifests ] || | |
[ -d modules ] || | |
[ -d xdebug ] || |
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
<!DOCTYPE html> | |
<html ng-app="myApp"> | |
<head> | |
<title></title> | |
</head> | |
<body ng-controller="MainCtrl"> | |
{{ menu }} | |
<div> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<style> | |
.is-active { | |
color: red; | |
} | |
</style> |
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
/* | |
requires: phantomjs, async | |
usage: phantomjs capture.js | |
*/ | |
var async = require('async'), | |
sizes = [ | |
[320, 480], | |
[1024, 768], | |
[1280, 800], |
NewerOlder