Skip to content

Instantly share code, notes, and snippets.

Sajad Dehshiri sajaddp

Block or report user

Report or block sajaddp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
endel / generateUserAgent.ts
Created Sep 13, 2018
Fake User Agent Generator
View generateUserAgent.ts
export function* generateUserAgent() {
let webkitVersion = 10;
let chromeVersion = 1000;
const so = [
'Windows NT 6.1; WOW64',
'Windows NT 6.2; Win64; x64',
"Windows NT 5.1; Win64; x64",,
'Macintosh; Intel Mac OS X 10_12_6',
"X11; Linux x86_64",
sebkouba / ParentChild.es6
Created Feb 17, 2016
Basic example to pass values between parent and child components in React.
View ParentChild.es6
* Basic example to pass values between parent and child components in React
* Seems to be in line with this
* Now I have the state in parent and child. Is that good or bad? Why would I need it in child?
* Could probably take that out
* */
class Parent extends React.Component {
constructor(props) {
odan /
Last active Aug 23, 2019
Installing Xdebug for XAMPP
View CentOS 7 + Nginx + MySQL5.6 + PHP5.6 (Laravel5.1) インストール nginx+php-fpmで動作確認まで.md

CentOS 7 + Nginx + MySQL5.6 + PHP5.6 (Laravel5.1) インストール nginx+php-fpmで動作確認まで


  • AWS EC2 t2.micro
  • CentOS Linux release 7.0.1406 (Core)
  • PHP 5.6.11
  • MySQL 5.6
  • Laravel Framework version 5.1.7 (LTS)
ghinda / object-to-form-data.js
Last active Aug 20, 2019
JavaScript Object to FormData, with support for nested objects, arrays and File objects. Includes Angular.js usage.
View object-to-form-data.js
// takes a {} object and returns a FormData object
var objectToFormData = function(obj, form, namespace) {
var fd = form || new FormData();
var formKey;
for(var property in obj) {
if(obj.hasOwnProperty(property)) {
if(namespace) {
kevinSuttle /
Last active Aug 22, 2019 — forked from lancejpollard/
List of Usable HTML Meta and Link Tags

Copied from

Basic HTML Meta Tags

<meta charset="UTF-8">
<meta name="keywords" content="your, tags">
<meta name="description" content="150 words">
<meta name="subject" content="your website"s subject">
<meta name="copyright" content="company name">
You can’t perform that action at this time.