Skip to content

Instantly share code, notes, and snippets.

@MihailJP
MihailJP / scala.xml
Last active April 19, 2024 01:14
Notepad++ syntax highlighting definition file for Scala
<NotepadPlus>
<UserLang name="Scala" ext="scala" udlVersion="2.0">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" forceLineCommentsAtBOL="no" foldCompact="no" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="yes" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments" id="0">00// 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, additional" id="1"></Keywords>
<Keywords name="Numbers, prefixes" id="2">0x</Keywords>
@willianfalbo
willianfalbo / README.md
Last active April 19, 2024 01:13
Install Zsh, Oh-My-Zsh, Fonts-Powerline & Plugins (Ubuntu 18.04+)

Install Zsh, Oh-My-Zsh, Fonts-Powerline & Plugins (Ubuntu 18.04+, MacOS)

Introduction

After following these steps, your terminal will look like:

1. Install Zsh

Zsh is a shell designed for interactive use, although it is also a powerful scripting language.

@samselikoff
samselikoff / chart-with-d3.jsx
Last active April 19, 2024 01:11
Diff from "Building an Animated Line Chart with d3, React and Framer Motion" https://www.youtube.com/watch?v=kPbRDn5Fg0Y
import * as d3 from "d3";
import {
eachMonthOfInterval,
endOfMonth,
format,
isSameMonth,
parseISO,
startOfMonth,
} from "date-fns";
import useMeasure from "react-use-measure";
@troggy
troggy / gist:eb5f80e84ac3f8a2c85d
Created June 24, 2014 21:39
Testing bitcoinj P2SH support with WalletTool
# Create first wallet
$ wallet-tool --wallet=first --net=REGTEST create --seed="7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f"
# Create second wallet
$ wallet-tool --wallet=second --net=REGTEST create --seed="7f7f7f7f7f7f7f7f7f7f7f7f7f7f7f00"
# Get xpub of the second wallet
$ wallet-tool --wallet=second --net=REGTEST dump
...omitted...
@rosylilly
rosylilly / gist:3401612
Created August 20, 2012 06:40
先輩と覚える HTTP ステータスコード

先輩に学ぶ HTTP Status Code

超雑にまとめました。修正してください。

登場人物

  • アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
  • 後輩: 頼んでばっかしで役に立たない。
  • サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
  • プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
@gustavohenrique
gustavohenrique / codigos-secretos-android
Created October 16, 2012 20:35
Codigos secretos no Android
Ao digitar os códigos, digite os caracteres sem usar espaço.
* # * # 4636 # * # * – Informações sobre o smartphone (permite que você altere o número do centro de serviço SMS e muito mais).
* 2767 * 3855 # – Hard Reset (USE COM CUIDADO, pois apaga todos os dados e restaura o firmware).
* # * # 34971539 # * # * Mostra informações completas sobre a câmera.
* # * # 7594 # * # * Mudando o comportamento do botão de energia.
* # * # 273283 * 255 * 663282 * # * # * Para um backup rápido de todos os seus arquivos de mídia.
* # * # 197328640 # * # * Ativar modo de teste para a atividade de serviço
* # * # 232339 # * # * OU * # * # 526 # * # * OU * # * # 528 # * # * Testes Wireless Lan
* # * # 232338 # * # * Apresenta Wi-Fi Mac-address
@MarshySwamp
MarshySwamp / Expand or Collapse Layer Sets.jsx
Last active April 19, 2024 00:57
Expand or Collapse Layer Sets
// Expand ALL layer groups/sets
openAllLayerSets(app.activeDocument);
function openAllLayerSets(parent) {
// https://forums.adobe.com/message/5764024#5764024
for (var setIndex = 0; setIndex < parent.layerSets.length; setIndex++) {
app.activeDocument.activeLayer = parent.layerSets[setIndex].layers[0];
openAllLayerSets(parent.layerSets[setIndex]);
}
}
@GzuPark
GzuPark / pytorch.Dockerfile
Created February 3, 2022 08:20
Sample Dockerfiles for TensorFlow & PyTorch
ARG UBUNTU_VERSION=20.04
ARG CUDA_VERSION=11.3.1
ARG CUDA=11.3
ARG CUDNN_VERSION=8
FROM nvidia/cuda:${CUDA_VERSION}-cudnn${CUDNN_VERSION}-devel-ubuntu${UBUNTU_VERSION}
LABEL maintainer "http://gzupark.dev"
ARG CUDA_VERSION
ARG CUDA