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
/** | |
* Automatically applies "p" and "br" markup to text. | |
* Basically [nl2br](http://php.net/nl2br) on steroids. | |
* | |
* echo Text::auto_p($text); | |
* | |
* [!!] This method is not foolproof since it uses regex to parse HTML. | |
* | |
* @param string $str subject | |
* @param boolean $br convert single linebreaks to <br /> |
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
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>HTML5 Canvas Drawing Board</title> | |
<script type="text/JavaScript" src="https://code.jquery.com/jquery-2.2.0.min.js"></script> | |
<style> | |
* { | |
margin: 0; | |
padding: 0; | |
} |
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
buildscript { | |
ext { | |
springBootVersion = '1.4.0.BUILD-SNAPSHOT' | |
} | |
repositories { | |
mavenCentral() | |
maven { url "https://repo.spring.io/snapshot" } | |
maven { url "https://repo.spring.io/milestone" } | |
} | |
dependencies { |
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 {Loader} from 'react-loaders'; | |
import {Button} from 'react-bootstrap'; | |
import DialogTopBar from '../components/DialogTopBar'; | |
import DialogInputBarContainer from '../containers/DialogInputBarContainer'; | |
import DialogMessagesLayoutContainer from '../containers/DialogMessagesLayoutContainer'; | |
export default class DialogLayout extends React.Component { | |
static propTypes = { | |
currentDialog: React.PropTypes.object.isRequired, |
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
/* | |
1. Open Audios | |
2. Copy this script | |
3. Insert to developer console and run | |
4. Enjoy! | |
*/ | |
//download.js v4.2, by dandavis; 2008-2016. [CCBY2] see http://danml.com/download.html for tests/usage | |
// v1 landed a FF+Chrome compat way of downloading strings to local un-named files, upgraded to use a hidden frame and optional mime |
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
Module Size Used by | |
hid_logitech_hidpp 28672 0 | |
hid_logitech_dj 20480 0 | |
xt_nat 16384 83 | |
cmac 16384 0 | |
veth 16384 0 | |
xfs 1024000 17 | |
xt_addrtype 16384 2 | |
br_netfilter 24576 0 | |
rfcomm 77824 2 |
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
/** | |
How to use: | |
1. Inside React Dev Tools select <Provider> | |
2. Copy this script | |
3. Paste to console | |
4. Run | |
*/ | |
let store = $r.store; | |
let rawDispatch = store.dispatch; |
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
doctype html | |
<html !{helmet.htmlAttributes.toString()}> | |
head. | |
!{helmet.title.toString()} | |
!{helmet.meta.toString()} | |
!{helmet.link.toString()} | |
<body !{helmet.bodyAttributes.toString()}> | |
#root. | |
!{content} | |
script(src=assets['manifest.js']) |
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 main | |
import ( | |
"flag" | |
"fmt" | |
"os" | |
"bufio" | |
"math" | |
"bytes" | |
"encoding/gob" |
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 NODE_ENV = process.env.NODE_ENV || 'development'; | |
const webpack = require('webpack'); | |
const CopyWebpackPlugin = require('copy-webpack-plugin'); | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const ManifestPlugin = require('webpack-manifest-plugin'); | |
const path = require('path'); | |
const addHash = (template, hash) => | |
NODE_ENV === 'production' ? template.replace(/\.[^.]+(\.map)?$/, `.[${hash}]$&`) : template; |
OlderNewer