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
WEBVTT | |
1 | |
00:00:00,540 --> 00:00:04,760 | |
Vas a escribir tu primera línea de código | |
y aprender a programar. | |
2 | |
00:00:04,900 --> 00:00:07,740 | |
Lo primero que necesito que hagas |
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 React, { Component } from 'react'; | |
import { | |
View, | |
TextInput, | |
Text, | |
TouchableOpacity, | |
ScrollView, | |
StyleSheet, | |
Dimensions, | |
Animated |
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
function cl_create_person($appId, $apiKey, $data, $endpoint = 'https://api.convertloop.co/v1/people') { | |
try { | |
if(empty($data['pid'])) { | |
$data['pid'] = isset($_COOKIE['dp_pid']) ? $_COOKIE['dp_pid'] : ''; | |
} | |
// $data: { "email": "[email protected]", "pid": "", "add_tags": ["ENGLISH"] } | |
$data = json_encode($data); | |
$auth_string = $appId . ":" . $apiKey; | |
$auth = base64_encode($auth_string); |
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
editText.addTextChangedListener(object: TextWatcher { | |
override fun afterTextChanged(s: Editable?) { | |
textAge.text = s.toString() | |
} | |
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { | |
} |
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
const postsQuery = { | |
type: new GraphQLList(Post), | |
args: { | |
//to paginate | |
limit: { type: GraphQLInt }, | |
offset: { type: GraphQLInt } | |
}, | |
resolve(root, args, ctx) { | |
return Post.findAll(args); | |
} |
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
let postType = new GraphQLObjectType({ | |
name: "todo", | |
fields: () => ({ | |
title: { type: GraphQLString }, | |
author: { type: GraphQLString }, | |
body: { type: GraphQLString } | |
}); |
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
let Post = sequelize.define( | |
"Post", | |
{ | |
title: { type: Sequelize.STRING }, | |
author: { type: Sequelize.STRING }, | |
body: { type: Sequelize.TEXT } | |
} | |
); |
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
let postSchema = new mongoose.Schema({ | |
title: { type: String }, | |
author: { type: String }, | |
body: { type: String } | |
)}; | |
mongoose.model('Post', postSchema); |
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
const Component = React.createClass({ | |
getInitialState() { | |
return { | |
name: 'ale', | |
posts: [] | |
} | |
}, | |
componentWillUpdate() { | |
console.log(this.state); |
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
<?php | |
// Include WordPress libraries to handle XML-RPC | |
require_once ABSPATH . '/wp-includes/class-IXR.php'; | |
require_once ABSPATH . '/wp-includes/class-wp-http-ixr-client.php'; | |
class Infusionsoft { | |
public $api_key; | |
public $error = FALSE; | |
public $subdomain; |