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
/** ********************** | |
Talent wanted! | |
Web developer. | |
Focus on Frontend. | |
##Salary and assistance## | |
Salary --- R$ 2.500,00 CLT | |
Assistance --- R$ 400,00 | |
##Local## |
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 | |
$localidades = ['logradouro', 'bairro', 'cidade', 'cep', 'pais']; | |
$conditions = []; | |
do{ | |
if(isset($this->request->data[current($localidades)])) | |
$conditions['l.'.current($localidades)] = '%'.$this->request->data[current($localidades)].'%'; | |
} | |
while(next($localidades)); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
DROP TABLE IF EXISTS `files`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `files` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, | |
`type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, | |
`path` varchar(500) COLLATE utf8_unicode_ci NOT NULL, | |
`users_id` int(11) NOT NULL, | |
`created` datetime NOT NULL, |
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
RewriteEngine on | |
ReWriteCond %{SERVER_PORT} !^443$ | |
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] | |
</virtualhost> | |
Listen 443 | |
<VirtualHost *:443> | |
ServerAdmin zadmin@localhost | |
DocumentRoot "/etc/sentora/panel/" |
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 UnityEngine; | |
using System.Collections; | |
[RequireComponent(typeof(SpriteRenderer))] | |
public class RepeatSpriteBoundary : MonoBehaviour | |
{ | |
SpriteRenderer sprite; | |
void Awake() | |
{ |
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 UnityEngine; | |
using System.Collections; | |
public static class SpritePivotAlignment | |
{ | |
public static SpriteAlignment GetSpriteAlignment(GameObject SpriteObject) | |
{ | |
BoxCollider2D MyBoxCollider = SpriteObject.AddComponent<BoxCollider2D>(); | |
float colX = MyBoxCollider.offset.x; | |
float colY = MyBoxCollider.offset.y; |
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
#!/bin/bash | |
LD_PRELOAD=/lib/x86_64-linux-gnu/libresolv.so.2 /opt/Unity/Editor/Unity |
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
var path = require('path'), | |
evh = require('express-vhost'), | |
express = require('express'), | |
server = express(); | |
/** | |
* express-vhost | |
**/ | |
server.use(evh.vhost(server.enabled('trust proxy'))); | |
server.listen(3000); //port 3000 |
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
alias mongorestart="sudo rm /var/lib/mongodb/mongod.lock && sudo service mongod restart" | |
alias bashrc="source ~/.bashrc" | |
gitall(){ | |
if [ -z "$1" ]; then | |
git add --all && git commit -m all && git push origin master | |
else | |
git add --all && git commit -m \"$1\" && git push origin master | |
fi | |
} |
OlderNewer