Skip to content

Instantly share code, notes, and snippets.

Avatar

tango tangorri

  • France
View GitHub Profile
View UE4Setup.sh
#!/bin/bash
# Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
set -e
cd "`dirname "$0"`"
if [ ! -f Engine/Binaries/DotNET/GitDependencies.exe ]; then
echo "GitSetup ERROR: This script does not appear to be located \
in the root UE4 directory and must be run from there."
@tangorri
tangorri / grid-scroll-directive.js
Last active Nov 30, 2018
scope not injectable in controller ...
View grid-scroll-directive.js
/**
* Created by ant on 16/04/2015.
*/
'use strict';
angular.module('project.widgets-grid').directive(
'gridScroll', function gridScrollDefinitionFn
($timeout,
DashboardGrid)
{
@tangorri
tangorri / Customer.php
Last active Jan 4, 2016
got error : $ php artisan db:seed Seeded: UserTableSeeder Seeded: ProfessionTableSeeder Seeded: LanguageTableSeeder [BadMethodCallException] Call to undefined method Illuminate\Database\Query\Builder::associate() db:seed [--class[="..."]] [--database[="..."]]
View Customer.php
<?php
class Customer extends Eloquent
{
public function user()
{
return $this->belongsTo('User');
}
public function profession()
@tangorri
tangorri / migration.php
Last active Jan 4, 2016
got this error [Illuminate\Database\QueryException] SQLSTATE[HY000]: General error: 1553 Cannot drop index 'customers_professio n_id_foreign': needed in a foreign key constraint (SQL: alter table `custom ers` drop `profession_id`)
View migration.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class AddProfessionColumnToCustomersTable extends Migration {
/**
* Run the migrations.
*
View 2014_01_15_070235_create_users_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateUsersTable extends Migration {
/**
* Run the migrations.
*
@tangorri
tangorri / gist:7561767
Last active Dec 28, 2015
how to concat all my js files in src/script (with js files inside of it and fils in each subdir) ? The output is x3 ....
View gist:7561767
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
build: {
src: ['build']
}
},
copy: {
View gist:7530224
angular.module('App').directive('topCatIcon',
function(TopCategories) {
return {
link: function(scope, element, attrs) {
var selectedColor = '#ffffff';
var defaultColor = scope.topCat.colors.active;
//scope.$watch('TopCategories.selected', function(newsValue, oldValue) {
//if (TopCategories.selected.item == null) return;
element.css('color', scope.topCat.colors.active);
View ctrl.js
angular.module('App').controller('OnlytomeCtrl',
function ($scope, $cookies, Http, $route, $location, $translate,Profile, Searches, ProfileSegments, TopCategories) {
$scope.mainNav = null;
$scope.subNav = null;
$scope.currentUser = null;
$scope.selectedTopCategory = null;
$scope.searches = [];
Http.authenticate().then( function(){
Profile.load();
View gist:7470380
<form novalidate name="signupForm" ng-submit="onSingupSubmit()" ng-controller="SignupCtrl">
<div class="account-form white-rounded-top">
<h3 translate>PAGE_ACCOUNT.SIGNUP</h3>
<div ng-repeat="error in errors" class="alert alert-danger" translate>{{error}}</div>
<div ng-repeat="info in infos" class="alert alert-info" translate>{{info}}</div>
<div class="form-group" ng-class="{'has-error': signupForm.login.$invalid}">
<input class="form-control" ng-model="account.login" type="email" name="login" placeholder="{{'PAGE_ACCOUNT.EMAIL' | translate }}" required>
<span class="help-block" ng-show="signupForm.login.$invalid" translate>PAGE_ACCOUNT.EMAIL_VALID_HELPER</span>
</div>
<div class="form-group" ng-class="{'has-error': signupForm.password.$invalid}">
View gist:7429355
@font-face {
font-family: 'icon_ezakusregular';
src: url('icon_ezakus-regular-webfont.eot');
src: url('icon_ezakus-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('icon_ezakus-regular-webfont.woff') format('woff'),
url('icon_ezakus-regular-webfont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
You can’t perform that action at this time.