A Pen by Jeremy Frank on CodePen.
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
function makeSOAPRequest($url, $soap_body){ | |
$ch = curl_init(); | |
curl_setopt( $ch, CURLOPT_URL, $url); | |
curl_setopt( $ch, CURLOPT_POST, true); | |
curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml')); | |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt( $ch, CURLOPT_POSTFIELDS, $soap_body); | |
$result = curl_exec($ch); |
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
let features = sourceJSON.features, | |
newFeatures = []; | |
features.map((feature, index) => { | |
let properties = feature.properties, | |
ft = { | |
geometry: feature.geometry, | |
properties: { | |
continent: properties.continent, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// tooling modules | |
import axios from 'axios' | |
// store | |
import store from '../store' | |
store.subscribe(listener); | |
function select(state) { | |
return state.auth.tokens.authentication_token | |
} |
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
<form class="form-horizontal col-md-10 cform" id="cform"> | |
<div class="form-group"> | |
<label class="control-label">Name*</label> | |
<input type="text" class="form-control" name="name" required /> | |
</div> | |
<div class="form-group"> | |
<label class="control-label">E-mail Address*</label> | |
<input type="email" class="form-control" name="email" required/> | |
</div> | |
<div class="form-group"> |
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
package app.test; | |
import android.app.Activity; | |
import android.app.DownloadManager; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.net.Uri; | |
import android.os.Bundle; |
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
<link rel="stylesheet" href="cropper.min.css"> | |
<div> | |
<div v-if="uploadError" class="alert alert-danger">{{ uploadError }}</div> | |
<label class="upload-label btn btn-sm btn-default"> | |
Browse... | |
<input type="file" accept="image/*" v-on:change="previewCropUpload" multiple /> | |
</label> |
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
# Compound interest: https://www.youtube.com/watch?v=P182Abv3fOk | |
# A = P(1 + r/n)tN | |
def compound(principle, interest, time, annual = True): | |
interest_percent = interest / 100 | |
amount_annual = principle * (1 + interest_percent) ** time | |
amount_monthly = principle * (1 + (interest_percent / 12)) ** (time * 12) | |
return amount_annual if annual else amount_monthly |
OlderNewer