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
REM *******QBAIC PROGRAM TO CALCULATE THE ROOT OF QUADRATIC EQUATION********* | |
REM *******http://niarageeks.com.ng************************************** | |
CLS | |
DIM v(3) AS INTEGER | |
DIM x(2) AS DOUBLE | |
DIM s AS INTEGER | |
DIM d AS INTEGER | |
DO | |
CLS |
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
from random import choice | |
from string import ascii_lowercase, digits | |
from django.contrib.auth import get_user_model | |
def generate_random_username(length=16, chars=ascii_lowercase+digits, split=4, delimiter='-'): | |
username = ''.join([choice(chars) for i in xrange(length)]) | |
if split: | |
username = delimiter.join([username[start:start+split] for start in range(0, len(username), split)]) |
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
{ | |
"expo": { | |
"name": "Txxx A", | |
"description": "Txx Booking App", | |
"slug": "snack-xxxxx", | |
"privacy": "unlisted", | |
"sdkVersion": "31.0.0", | |
"version": "1.0.0", | |
"orientation": "portrait", | |
"primaryColor": "#cccccc", |
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
Mozilla/5.0 (Android; Mobile; rv:36.0) Gecko/36.0 Firefox/36.0 | |
Opera/9.80 (Android; Opera Mini/7.5/34.1784; U; en) Presto/2.8 Version/11.10 | |
Opera/9.80 (Android; Opera Mini/7.5/34.1153; U; en) Presto/2.8 Version/11.10 | |
Opera/9.80 (Android; Opera Mini/7.5/34.1944; U; en) Presto/2.8 Version/11.10 | |
Mozilla/5.0 (Android; Mobile; rv:27.0) Gecko/27.0 Firefox/27.0 | |
Opera/9.80 (Android; Opera Mini/7.5/34.1088; U; en) Presto/2.8 Version/11.10 | |
Mozilla/5.0 (Android; Mobile; rv:27.0) Gecko/27.0 Firefox/27.0 | |
Opera/9.80 (Android; Opera Mini/7.5/35.3956; U; en) Presto/2.8 Version/11.10 | |
Opera/9.80 (Android; Opera Mini/7.5/34.1697; U; en) Presto/2.8 Version/11.10 | |
Opera/9.80 (Android; Opera Mini/7.5/34.1244; U; en) Presto/2.8 Version/11.10 |
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
-- phpMyAdmin SQL Dump | |
-- version 4.7.4 | |
-- https://www.phpmyadmin.net/ | |
-- | |
-- Host: 127.0.0.1 | |
-- Generation Time: Sep 30, 2018 at 02:57 PM | |
-- Server version: 5.5.16 | |
-- PHP Version: 7.1.11 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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
const createMySocketMiddleware = (url) => { | |
return storeAPI => { | |
let socket = createMyWebsocket(url); | |
socket.on("message", (message) => { | |
storeAPI.dispatch({ | |
type : "SOCKET_MESSAGE_RECEIVED", | |
payload : message | |
}); | |
}); |
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 csv | |
from django.http import HttpResponse | |
def export_as_csv_action(description="Export selected objects as CSV file", fields=None, exclude=None, header=True): | |
""" | |
This function returns an export csv action | |
'fields' and 'exclude' work like in django ModelForm | |
'header' is whether or not to output the column names as the first row | |
""" |
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
const MONTH_NAMES = [ | |
'January', 'February', 'March', 'April', 'May', 'June', | |
'July', 'August', 'September', 'October', 'November', 'December' | |
]; | |
const getFormattedDate = (date, prefomattedDate = false, hideYear = false) => { | |
const day = date.getDate(); | |
const month = MONTH_NAMES[date.getMonth()]; | |
const year = date.getFullYear(); |
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 from 'react' | |
import { View } from 'native-base' | |
import { Field } from 'redux-form' | |
// Custom components | |
import { RadioButton } from '../Form' | |
export default class Gender extends React.Component { | |
state = { | |
selected: 'male' |
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 | |
/** | |
* Spintax - A helper class to process Spintax strings. | |
* | |
* @author Jason Davis - https://www.codedevelopr.com/ | |
* | |
* Tutorial: https://www.codedevelopr.com/articles/php-spintax-class/ | |
* | |
* Updated with suggested performance improvement by @PhiSYS. |
OlderNewer