made with esnextbin
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
// Setup arrays for Actual Values, and Placeholders | |
$values = array(); | |
$place_holders = array(); | |
// Then loop through the the values you're looking to add, and insert them in the appropriate arrays: | |
foreach($_POST as $key => $value) | |
{ | |
array_push($values, $value, $order_id); | |
$place_holders[] = "('%d', '%d')" /* In my case, i know they will always be integers */ | |
} |
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 | |
$pagenum = isset( $_GET['pagenum'] ) ? absint( $_GET['pagenum'] ) : 1; | |
$limit = 1; | |
$offset = ( $pagenum - 1 ) * $limit; | |
$results = $wpdb->get_results("SELECT * FROM ex_contactus LIMIT $offset, $limit"); | |
// DISPLAY DATA | |
$total = $wpdb->get_var("SELECT COUNT('id') FROM ex_contactus "); |
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'; | |
// simple express server | |
var express = require('express'); | |
var app = express(); | |
var router = express.Router(); | |
app.use(express.static('public')); | |
app.get('/', function(req, res) { | |
res.sendfile('./public/index.html'); |
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 timApp | |
* @subpackage filterData | |
* @desc To filter data by color and capacity | |
* @author tim tawan <[email protected]> | |
**/ | |
var timApp = timApp || {}; | |
timApp.filterData = { |
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
{ | |
"always_prompt_for_file_reload": false, | |
"always_show_minimap_viewport": false, | |
"animation_enabled": true, | |
"atomic_save": false, | |
"auto_close_tags": true, | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": false, | |
"auto_complete_cycle": false, | |
"auto_complete_delay": 50, |
made with esnextbin
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
<pre data-bind="text: ko.toJSON($data, null, 2)"></pre> |
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
import React, { Component } from 'react' | |
import { | |
ActivityIndicator, | |
View, | |
Text, | |
Alert | |
} from 'react-native' | |
import { Permissions, Location, Notifications, Constants } from 'expo' | |
import { graphql, gql, compose } from 'react-apollo' | |
import update from 'immutability-helper' |
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
// Alerts | |
@include alert-variant($background, $border, $text-color); | |
// Background Variant | |
@include bg-variant($parent, $color); | |
// Border Radius | |
@include border-top-radius($radius); | |
@include border-right-radius($radius); | |
@include border-bottom-radius($radius); |
OlderNewer