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
.notifications-service { | |
position: fixed; | |
top: 10px; | |
width: 100%; | |
text-align: center; | |
} | |
.notification-list { | |
list-style: none; | |
padding: 0; | |
margin: 0; |
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
angular.module("myApp").directive("autoGrow", function(){ | |
return function(scope, element, attr){ | |
var update = function(){ | |
element.css("height", "auto"); | |
var height = element[0].scrollHeight; | |
if(height > 0){ | |
element.css("height", height + "px"); | |
} | |
}; | |
scope.$watch(attr.ngModel, function(){ |
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 | |
function clean_da_svg($svg){ | |
$remover[] = 'xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"'; | |
$remover[] = 'xmlns:xlink="http://www.w3.org/1999/xlink"'; | |
$remover[] = 'x="0px" y="0px"'; | |
$remover[] = '<defs></defs>'; | |
$remover[] = 'version="1.1"'; | |
$remover[] = "\r"; | |
$remover[] = "\n"; | |
$remover[] = "\r\n"; |
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 strict'; | |
var gulp = require('gulp'); | |
var imacss = require('gulp-imacss'); | |
var imagemin = require('gulp-imagemin'); | |
var pngcrush = require('imagemin-pngcrush'); | |
gulp.task('imacss', function () { | |
gulp.src('app/images/sprites/**/*.svg') | |
.pipe(imagemin({ | |
progressive: 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 <stdio.h> | |
#include <ctype.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int menu(); | |
void imprimeConcurso(); | |
void carregaConcurso(); | |
void test(); |
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 <stdio.h> | |
#include <stdlib.h> | |
int main(){ | |
int max=3, i=0, j=0, k=0, l=max; | |
int x[max], y[max], z[max+max]; | |
printf("Digite os valores para o array X\n"); | |
for(i=0; i<max; i++){ | |
scanf("%d", &x[i]); |
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 | |
function validar_cnpj($cnpj) | |
{ | |
$cnpj = preg_replace('/[^0-9]/', '', (string) $cnpj); | |
// Valida tamanho | |
if (strlen($cnpj) != 14) | |
return false; |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* GAnalytics - Google Analytics PHP Interface for Code Igniter | |
* Uses google php api https://github.com/google/google-api-php-client | |
* | |
* Support material: | |
* How to set-up the app and configure the analytics profile http://stackoverflow.com/a/10089698/1666071 | |
* Analytics query explorer http://ga-dev-tools.appspot.com/explorer/ | |
* |
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 | |
ob_settings_config { | |
var $group = "enapupe"; // defines setting groups (should be bespoke to your settings) | |
var $page_name = "enapupe"; // defines which pages settings will appear on. Either bespoke or media/discussion/reading etc | |
var $title = "Detrick"; // page title that is displayed | |
var $nav_title = "Detrick"; // how page is listed on left-hand Settings panel | |
var $sections = array( |