Look for Sentry config file/s (sentry.client.js & sentry.config.js)
Either file should contain an object like this
Sentry.init({
dsn: DSN_YOU_ACQUIRED_FROM_SENTRY
})
find . -type f -not -path '*/.*' -path '*.js' -not -path './node_modules*' -not -path 'migrate.js' -exec sed -i '' -e 's/AdjustmentsVerticalIcon/AdjustmentsVerticalIcon/g' {} + | |
find . -type f -not -path '*/.*' -path '*.js' -not -path './node_modules*' -not -path 'migrate.js' -exec sed -i '' -e 's/ChatBubbleBottomCenterTextIcon/ChatBubbleBottomCenterTextIcon/g' {} + | |
find . -type f -not -path '*/.*' -path '*.js' -not -path './node_modules*' -not -path 'migrate.js' -exec sed -i '' -e 's/ArchiveBoxIcon/ArchiveBoxIcon/g' {} + | |
find . -type f -not -path '*/.*' -path '*.js' -not -path './node_modules*' -not -path 'migrate.js' -exec sed -i '' -e 's/ArrowDownCircleIcon/ArrowDownCircleIcon/g' {} + | |
find . -type f -not -path '*/.*' -path '*.js' -not -path './node_modules*' -not -path 'migrate.js' -exec sed -i '' -e 's/ArrowLeftCircleIcon/ArrowLeftCircleIcon/g' {} + | |
find . -type f -not -path '*/.*' -path '*.js' -not -path './node_modules*' -not -path 'migrate.js' -exec sed -i '' -e 's/ArrowRightCircleIcon/ArrowRightCircleI |
import _ from 'lodash'; | |
export const getHBValues = (text) => { | |
const re = /{{[{]?(.*?)[}]?}}/g; | |
const tags = []; | |
let matches; | |
while (Boolean((matches = re.exec(text)))) { | |
if (matches) { | |
tags.push(matches[1]); | |
} |
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
#!/bin/bash | |
# This script will install AMDGPU-PRO OpenCL and Vulkan support. | |
# | |
# For Ubuntu and it's flavor, just install the package using this command | |
# in extracted driver directory instread. | |
# | |
# ./amdgpu-pro-install --opencl=legacy,pal --headless --no-dkms | |
# | |
# For Arch Linux or Manjaro, use the opencl-amd or rocm-opencl-runtime on AUR instread. |
#include <stdio.h> | |
/* | |
* Calculates what Ada Lovelace labeled "B7", which today we would call the 8th | |
* Bernoulli number. | |
*/ | |
int main(int argc, char* argv[]) | |
{ | |
// ------------------------------------------------------------------------ | |
// Data |
import { makeExecutableSchema, addMockFunctionsToSchema } from 'graphql-tools'; | |
import { graphql } from 'graphql'; | |
import GraphQLMock from 'graphql-mock'; | |
import typeDefs from 'imports/startup/both/typeDefs'; | |
// Make a GraphQL schema with no resolvers | |
const schema = makeExecutableSchema({ typeDefs }); | |
// Creates random id | |
const revisedRandId = () => |
module multiHull(){ | |
for (i = [1 : $children-1]) | |
hull(){ | |
children(0); | |
children(i); | |
} | |
} | |
module sequentialHull(){ | |
for (i = [0: $children-2]) |
Sometimes you need to edit a file on a remote server, but using vim/emacs is not very practical, due to lag and speed of screen refresh.
TextMate users have the classic rmate, but it was implemented in Ruby, which may not be available on the remote server.
A better option is to use this version of rmate, implemented in pure Bash. It's a single file, self-contained, and with no external dependencies.
Step by step:
Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.
My 3 developers team has just developed React.js application with 7668
lines of CSS (and just 2 !important
).
During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.
Here are main principles we use to write CSS for modern (IE11+) browsers: