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
| let lastTweet = null, | |
| lastReply = null, | |
| lastRetweet = null, | |
| lastFollower = null, | |
| lastConversation = null; | |
| const initialBackoff = 10000; | |
| const backoffIncrease = 5000; | |
| let backoff = initialBackoff; |
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
| # Yes, I hate having to type "./" _that_ much. | |
| New-Alias -Name "build" -Value BuildRuntime | |
| function BuildRuntime { | |
| $root = $((git rev-parse --show-toplevel 2> $Null) ?? "").Replace("\", "/") | |
| $runtime = (Resolve-Path "~/git/dotnet/runtime").Path.Replace("\", "/") | |
| if ($root -eq $runtime) { | |
| & "~/git/dotnet/runtime/build.cmd" $ARGS |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text.RegularExpressions; | |
| namespace Scanner | |
| { | |
| class Program | |
| { |
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 strickland = require("strickland"); | |
| var validate = strickland.default; | |
| var required = strickland.required; | |
| var length = strickland.length; | |
| var minLength = strickland.minLength; | |
| var form = strickland.form; | |
| var data = { | |
| name: '', | |
| phones: [ |
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
| <style> | |
| my-custom-class:before { | |
| top: 0px; | |
| /* this renders fine */ | |
| } | |
| my-custom-class::before { | |
| top: 0px; | |
| /* this css class is not rendered */ | |
| } |
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
| function View({ loading, error, ...otherProps }) { | |
| if (loading) { | |
| return (<Loading />); | |
| } | |
| if (error) { | |
| return (<Error error={error} />); | |
| } | |
| return (<MyLoadedComponent {...otherProps} />); |
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
| /* NameDisplay.js */ | |
| import ReactPropTypes from 'prop-types'; | |
| const NameDisplay = ({name}) => ( | |
| <div> | |
| <div> | |
| First Name: {name.first} | |
| </div> | |
| <div> | |
| Last Name: {name.last} |
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
| function loadCameraRoll(url, max, done) { | |
| url = url || "https://graph.microsoft.com/v1.0/me/drive/special/cameraRoll/children"; | |
| max = max || 200; | |
| console.log('LOADING PHOTOS'); | |
| $.ajax({ | |
| url: url, | |
| dataType: "json", | |
| headers: { "Authorization": "Bearer " + window.token }, |
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
| document.querySelectorAll("#channel_page_all_members a.lazy.member_preview_link.member_image.thumb_20") | |
| .forEach(function(member) { | |
| window.open(member.dataset.original.replace(/^url\(\'(.*)-48\'\)$/, "$1-128")); | |
| }); |
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
| { | |
| "scripts": { | |
| "build:core": "babel src -d lib && webpack", | |
| "build": "NODE_ENV=production npm run build:core", | |
| "postbuild": "echo 'Build Complete'", | |
| "predev": "webpack --config webpack.dev.config.babel.js", | |
| "dev": "NODE_ENV=development babel-node src/server", | |
| "start": "nodemon --watch src/ -e js,jsx --exec npm run dev" | |
| }, | |
| "devDependencies": { |
NewerOlder