Skip to content

Instantly share code, notes, and snippets.

View newswim's full-sized avatar
🦬
Hi

Dan Minshew newswim

🦬
Hi
View GitHub Profile
@newswim
newswim / output
Created April 20, 2016 13:04
stylus parsing error
danbook% meteor
[[[[[ ~/Documents/dev/savi/arrow-react-toolbox ]]]]]
=> Started proxy.
=> Started MongoDB.
=> Errors prevented startup:
While processing files with savi:css-modules (for target web.browser):
/client/modules/core/components/home_right.m.styl: CSS modules stylus compiler error: {"stack":"ParseError: {}/client/modules/core/components/home_right.m.styl:4:35\n at
Object.Future.wait (/Users/dm/Documents/dev/savi/arrow-react-toolbox/packages/css-modules/.npm/plugin/mss/node_modules/fibers/future.js:395:16)\n at StylusProcessor.load
@newswim
newswim / level12.js
Created April 17, 2016 20:55
untrusted js
if (me.getX() < 10) {
me.move('right')
} else if (me.getX() >= 10
&& me.getX() < 20
&& me.getY() < 6
) {
me.move('down')
} else if (me.getX() <= 29) {
me.move('right')
} else if (me.getX() >= 29
@newswim
newswim / dump
Created April 16, 2016 20:54
building h20
bash-3.2$ ./gradlew build
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
@newswim
newswim / list functions.js
Created April 13, 2016 04:06
Hardcore functional programming (exercise 1)
var _ = R;
/*****************************************
C U R R Y I N G E X A M P L E
******************************************/
// We've got a nice multiply function.
// It takes two arguments.
console.log( _.multiply(3, 4) );
@newswim
newswim / random.js
Created April 2, 2016 17:06
random number generator
function random(m_w, m_z){
m_z = 36969 * (m_z & 65535) + (m_z >> 16);
m_w = 18000 * (m_w & 65535) + (m_w >> 16);
return (m_z << 16) + m_w
}
@newswim
newswim / dump.md
Created March 24, 2016 17:11
Reapp generator dump

│ │ │ ├── assert-plus@0.1.5 │ │ │ └── ctype@0.5.3 │ │ ├── json-stringify-safe@5.0.1 │ │ ├── mime-types@1.0.2 │ │ ├── node-uuid@1.4.7 │ │ ├── oauth-sign@0.4.0 │ │ ├── qs@1.2.2 │ │ ├── stringstream@0.0.5 │ │ ├── tough-cookie@2.2.2 │ │ └── tunnel-agent@0.4.2

@newswim
newswim / shwp.js
Created March 9, 2016 20:13
photoswipe setup
var integrationGallery = function() {
var pswpElement = document.querySelectorAll('.pswp')[0];
// build items array
var items = [
{
html: '<br><br><h1>This is a photoswiping plug-in</h1>'
},
{
src: 'https://farm7.staticflickr.com/6175/6176698785_7dee72237e_b.jpg',
@newswim
newswim / code_violations.json
Created March 5, 2016 21:10
Code Violations
{
status: 200,
success: true,
result: [
{
OBJECTID *: "1273",
Year: "2002",
Month: "10",
Data: "Data",
YYYYMM: "200210",
@newswim
newswim / facilities.json
Created March 5, 2016 20:12
Community Facilities located in Denton
{
status: 200,
success: true,
result: [
{
Address: "3900 Karina St",
City: "Denton",
State: "TX",
NAICSCode: "0",
SICCode: "0",
@newswim
newswim / dump.sh
Created March 2, 2016 19:20
Docker build
#### Dockerfile
# Get image
FROM node:0.10.40
# Install dependencies
RUN npm i roots -g
WORKDIR /opt/app
ENTRYPOINT /usr/local/bin/roots
CMD ["compile"]