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
/* | |
* Your Stylesheet | |
* | |
* This stylesheet is loaded when Atom starts up and is reloaded automatically | |
* when it is changed and saved. | |
* | |
* Add your own CSS or Less to fully customize Atom. | |
*/ | |
// style the background color of the tree view |
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 { movement } = require('./props'); | |
const { park, drive } = movement; | |
module.exports = { | |
movement: { | |
park, | |
drive | |
} | |
}; |
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 curry = (func, arr = []) => (...args) => | |
(nextArgs => | |
nextArgs.length === func.length | |
? func(...nextArgs) | |
: curry(func, nextArgs))([...arr, ...args]); |
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 maintainPosition = () => { | |
let prevHeight = document.body.clientHeight; | |
setInterval((x, y) => { | |
if (prevHeight !== document.body.clientHeight) { | |
x = window.scrollX; | |
y = window.scrollY + document.body.clientHeight - prevHeight; | |
window.scrollTo(x, y); | |
} | |
}, 100); | |
}; |
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, { Component } from 'react'; | |
import { Dimensions, Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; | |
import { Video } from 'expo'; | |
const btnPlay = require('./btn-play.png'); | |
const btnPause = require('./btn-pause.png'); | |
const demoVideo = | |
'firebasestorage.googleapis.com/v0/b/bn-wvid.appspot.com/o/TheBunnyMovie.mp4'; | |
const demoToken = | |
'?alt=media&token=ac6c7062-076f-49eb-a747-acd232767daa'; |
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 entryHeader = document.querySelector('.entry-header'); | |
const entryTitle = document.querySelector('.entry-title'); | |
// entryHeader.style.display = 'none'; // To remove completely | |
entryTitle.innerText = 'What we do'; // Or whatever text you want |
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
netstat -a -o -n | |
taskkill /F /PID <PID # for the port> |
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
QTextStream in(stdin); | |
forever { | |
QString line = in.readLine(); | |
if (!line.isNull()) | |
break; | |
} |
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
(function bnoden() { | |
var body = document.querySelector('body'), cmLine = document.querySelectorAll('.CodeMirror-lines'), | |
cmVar = document.querySelectorAll('.cm-variable'), terminal = document.querySelectorAll('.CodeMirror-code'), | |
cmKey = document.querySelectorAll('.cm-keyword'), cmStr = document.querySelectorAll('.cm-string'), | |
c0de = document.querySelectorAll('code'); | |
(function paint(){ | |
body.style.background = '#CEF5D0' | |
for (var i = 0; i < cmVar.length; i++) |
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
$(document).ready(function(){ | |
// Modify as needed to suit project | |
function quickBtn(txt, tag, cls){ | |
this.txt = txt; | |
this.tag = '<'+tag+'>'; | |
this.tagClose = '</'+tag+'>'; | |
this.cls = cls; | |
}; | |
quickBtn.prototype.make = function(element){ |
NewerOlder