View 0_reuse_code.js
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 |
View sss
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
# los errores de: | |
* dirscan | |
* noauthorize | |
* | |
en windows 10, se arrgelan asegurnadose de usar npm 5.3.0 | |
otro manera es dando acceso comple to(full) a todas las cuentas que tenga el sistema | |
respecto de la carpeta en cuestion | |
View tt
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
## Can't bind to 'ngModel' since it isn't a known property of 'input' | |
### resuelve | |
Yes that's it, in the app.module.ts, I just added : | |
``` | |
import { FormsModule } from '@angular/forms'; | |
[...] | |
@NgModule({ |
View jj
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
If you need access to a function from several places, consider putting it in a service as mentioned before | |
el ejemplo completo: |
View md1
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
1. take a look at [Chrome Devtools](https://developer.chrome.com/devtools) (given you use Chrome which has very neat devtools build-in). | |
2. I also often suggest people to do the [free Code School course](http://discover-devtools.codeschool.com/) on Discover Devtools which is nice as well. | |
3. Open web developer console, go to "Sources" section. Press "CTRL+P". A search box will open where type ".ts" and find your file or directly search your file like "myfile.ts". Open it and you can put breakpoints directly in the code, the same way we put breakpoints in a js file and Voila, you can debug Typescript. | |
4. In the case of TypeScript, also make sure that you enable sourcemaps. As you probably know TypeScript isn't directly executed by the browser, but rather it is being "compiled" (or as it's called "transpiled") into JavaScript. That said, you probably don't wanna debug the transpiled JS but rather the TypeScript code you wrote. To enable sourcemaps, set the proper flag in your __tsconfig.json__: | |
``` | |
{ |
View as
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
# http://fontawesome.io/get-started/ | |
Font Awesome CDN is the easiest way to get Font Awesome on your website or app, | |
all with just a single line of code. No downloading or installing! | |
## Download & Customize | |
Want to manage and host Font Awesome assets yourself? You can download, customize, | |
and use the icons and default styling manually. | |
Both CSS and CSS Preprocessor (Sass and Less) formats are included. |
View in data base
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
CREATE FUNCTION make_uid() RETURNS text AS $$ | |
DECLARE | |
new_uid text; | |
done bool; | |
BEGIN | |
done := false; | |
WHILE NOT done LOOP | |
new_uid := md5(''||now()::text||random()::text); | |
done := NOT exists(SELECT 1 FROM my_table WHERE uid=new_uid); | |
END LOOP; |
View noname
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
### [Returning Command](https://www.postgresql.org/docs/9.5/static/dml-returning.html) | |
### [How to return result of a SELECT inside a function in PostgreSQL?](https://stackoverflow.com/questions/7945932/how-to-return-result-of-a-select-inside-a-function-in-postgresql) | |
### [varibles del entorno](https://www.postgresql.org/docs/8.3/static/plpgsql-statements.html) | |
### [PostgreSQL SQL Tricks](https://postgres.cz/wiki/PostgreSQL_SQL_Tricks) | |
### [System Information Functions](https://www.postgresql.org/docs/8.1/static/functions-info.html) |
View css
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
#footer { | |
position: fixed; | |
bottom: 0; | |
width: 100%; | |
} | |
View elcss
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
.left, .right { | |
float: none; | |
padding: 20px; | |
width: 50%; | |
vertical-align: top; | |
} | |
.container { | |
display: table; | |
width: 100%; |
OlderNewer