Skip to content

Instantly share code, notes, and snippets.

View apipkin's full-sized avatar
🤖
^_^

Anthony Pipkin apipkin

🤖
^_^
View GitHub Profile
.marquee {
width: 80%;
overflow: hidden;
}
.message {
white-space: nowrap;
position: relative;
}
@apipkin
apipkin / marquee-plugin.css
Created July 30, 2014 00:46
jQuery Plugin for a Marquee - See it at http://apipkin.jsbin.com/gorige/3/
.marquee {
white-space: nowrap;
overflow: hidden;
background: purple;
color: white;
padding: 6px 0;
}
.marquee > .message {
position: relative;
}
@apipkin
apipkin / gist:235af20a372a9942b886
Created August 18, 2014 14:39
Simple hapi.js JSON "Hello world"
var Hapi = require('hapi'),
server = new Hapi.Server(3001);
server.route({
path: '/{name?}',
method: 'GET',
handler: function (req, rep) {
rep({
greeting: 'Hello, ',
@apipkin
apipkin / gist:f4142ff2e2b79d4693a5
Last active August 29, 2015 14:06
Simple hapi.js file server
var Hapi = require('hapi'),
server = new Hapi.Server();
server.connection({
port: 3001
});
server.route({
path: '/{param*}',
server.route({
method: 'GET',
path: '/frame/{file*}',
handler: {
directory: {
path: 'dist'
}
}
});
{
"align_indent": false,
"alignment_chars":
[
"=",
":"
],
"alignment_space_chars":
[
"="
@apipkin
apipkin / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
console.info('Webpak Config');
module.exports = {
entry: './src/js/app.jsx',
output: {
filename: 'app.js',
path: __dirname + '/public/js/'
},
module: {
loader: [
[09:30][apipkin:~/Desktop/player]$ npm run pack
> player@1.0.0 pack /Users/apipkin/Desktop/player
> webpack --progress --colors
Webpak Config
Hash: 9a56cc72acac2de6f40c
Version: webpack 1.7.3
Time: 21ms
[0] ./src/js/app.jsx 0 bytes [built] [failed]
<pre><code class="language-js">function () {
var a = 1;
}
</code></pre>