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 {delay} from 'redux-saga'; | |
| import {call, take} from 'redux-saga/effects'; | |
| import _ from 'lodash'; | |
| const defaultParameters = { | |
| interval: 1000, | |
| maxInterval: 60 * 1000, | |
| multiplier: 1, | |
| }; |
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
| Run : php filezilladecode.php {FileZilla.xml path (required)} {Host name} | |
| Ex : php filezilladecode.php C:\Users\Dev\FileZilla.xml examplehost.com | |
| <?php | |
| if($argv && count($argv) > 1) { | |
| $xml = @file_get_contents($argv[1]); | |
| if($xml) { | |
| if(substr($argv[1], -3) === "xml") { | |
| $output = array(); | |
| $parser = new SimpleXMLElement($xml); |
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
| /** | |
| * Sample React Native App | |
| * https://github.com/facebook/react-native | |
| */ | |
| 'use strict'; | |
| var React = require('react-native'); | |
| var { | |
| AppRegistry, | |
| StyleSheet, |
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
| ## Mobile redirect | |
| RewriteEngine on | |
| RewriteCond %{HTTP_USER_AGENT} iPhone|Android|iPad|iPod|Blackberry | |
| RewriteCond %{REQUEST_URI} !(\.jpg|\.jpeg|\.png|\.gif|\.svg)$ [NC] | |
| RewriteCond %{REQUEST_URI} !^reservation$ [NC] | |
| RewriteRule .* http://m.cfm33.com/ [R] | |
| ## End mobile redirect |
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
| package com.example.nico.muchskills; | |
| import android.app.Activity; | |
| import android.os.Bundle; | |
| import android.util.Log; | |
| import android.view.Menu; | |
| import android.view.MenuItem; | |
| import org.apache.http.HttpResponse; | |
| import org.apache.http.client.ClientProtocolException; |
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
| /** | |
| * Get last days | |
| * | |
| * @param {Date} Start date | |
| * @param {Integer} How days | |
| * @return {Array} An array of date string | |
| */ | |
| function getLastDaysByDate(date, days) { | |
| date = date || new Date(); | |
| days = days || 7; |
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
| Mongoose: users.find({ last_activity: { '$gt': new Date("Fri, 17 Apr 2015 13:07:43 GMT"), '$lt': new Date("Mon, 27 Apr 2015 13:07:43 GMT") } }) { fields: undefined } |
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
| var _test = { | |
| "Username" : { | |
| "ng-model" : "user.username", | |
| "label" : true, | |
| "required" : true, | |
| "type" : "text", | |
| "attr" : { | |
| "placeholder" : "Please enter your username", | |
| "max" : 10 | |
| }, |
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 json | |
| import time | |
| import datetime | |
| from pprint import pprint | |
| class Json2Css: | |
| _file = "" | |
| output = "" | |
| output_file = "csscompile.css" |
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
| var LikeButton = React.createClass({displayName: "LikeButton", | |
| getInitialState: function() { | |
| return {liked: false}; | |
| }, | |
| handleClick: function(event) { | |
| this.setState({liked: !this.state.liked}); | |
| }, | |
| render: function() { | |
| var text = this.state.liked ? 'like' : 'haven\'t liked'; | |
| return ( |
NewerOlder