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
import Ember from 'ember'; | |
export function initialize(container) { | |
return Ember.run.schedule('afterRender', function () { | |
new Framework7(); | |
}); | |
} | |
export default { | |
name: 'framework7', |
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 | |
# param of enviroment: staging, production and development | |
# IMPORTANT: change __Project__ for your project name | |
echo -e '\033[01;32m >>>>>>>>>>>>>>>>>>>>>>>> ETAPA 1/3 > APLICANDO CONFIGURAÇÕES IOS AO PROJETO \033[00;37m' | |
sed -i '' 's/material/ios/g' ember-cli-build.js | |
echo -e '\033[01;32m >>>>>>>>>>>>>>>>>>>>>>>> ETAPA 2/3 > FAZENDO BUILD PARA IOS \033[00;37m' | |
ember cordova:build --environment=$1 --platform=ios |
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 | |
# $1 = staging, production or development | |
BUILDPATH=cordova/platforms/android/build/outputs/apk/ | |
echo -e '\033[01;32m >>>>>>>>>>>>>>>>>>>>>>>> ETAPA 1/4 > APLICANDO CONFIGURAÇÕES ANDROID AO PROJETO \033[00;37m' | |
sed -i '' 's/ios/material/g' ember-cli-build.js | |
echo -e '\033[01;32m >>>>>>>>>>>>>>>>>>>>>>>> ETAPA 2/4 > FAZENDO BUILD PARA ANDROID \033[00;37m' | |
ember cordova:build --environment=$1 --platform=android |
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
/** | |
* 400 (Bad Request) Handler | |
* | |
* Usage: | |
* return res.badRequest(); | |
* return res.badRequest(data); | |
* return res.badRequest(data, 'some/specific/badRequest/view'); | |
* | |
* e.g.: | |
* ``` |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle', | |
classificacao: { | |
pessoa: { | |
tipo: 'FISICA' | |
} | |
} | |
}); |
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
// Trocar body pela Div | |
body:before { | |
-webkit-animation: 10s normal forwards zoomin ease-in; | |
animation: 10s normal forwards zoomin ease-in; | |
background-image: url("http://www.artisanaljavascript.com/images/tradition.jpg"); | |
background-size: cover; | |
content: " "; | |
height: 100%; | |
position: fixed; | |
-webkit-transform-origin: center center 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
$('body').on('click', '#messages-view a', (event) => { | |
event.preventDefault(); | |
let link = event.target.href; | |
require("electron").shell.openExternal(link); | |
}); |
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
import Ember from 'ember'; | |
export function captureLinks(params/*, hash*/) { | |
var expression = /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9]\.[^\s]{2,})/; | |
var regex = new RegExp(expression); | |
var phrase = params[0] || ''; | |
var words = phrase.split(' '); | |
console.log('words', words); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef struct nodo{ | |
int valor; | |
struct nodo *esquerda, *direita; | |
}Nodo; | |
Nodo *arvore; |