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
shobhit: | |
first_name: Shobhit | |
mid_name: Wait For It | |
last_name: Bakliwal | |
random_info: Loves gatte ki Sabji | |
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html | |
one: | |
title: MyString |
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
{ domain: | |
{ domain: null, | |
_events: { error: [Function] }, | |
_maxListeners: 10, | |
members: [] }, | |
_events: {}, | |
_maxListeners: 10, | |
_bench: { ts: 191301073.138708 }, | |
server: | |
{ domain: null, |
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
# Install 3 gems :- terminal-notifier, nokogiri, httparty | |
require 'terminal-notifier' | |
require 'nokogiri' | |
require 'httparty' | |
previous = "" | |
cricinfo = true | |
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
<service | |
android:name="com.example.AuthenticatorService" | |
android:enabled="true" | |
android:exported="true"> | |
<intent-filter> | |
<action android:name="android.accounts.AccountAuthenticator" /> | |
</intent-filter> | |
<meta-data | |
android:name="android.accounts.AccountAuthenticator" |
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
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" /> | |
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" /> | |
<uses-permission android:name="android.permission.READ_SYNC_STATS" /> | |
<application> | |
<service | |
android:name="com.pilanites.streaks.SyncService" | |
android:exported="true" | |
android:process=":sync"> | |
<intent-filter> |
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
# Assuming your Secret Key Base is in Rails.application.secrets.secret_key_base | |
def encrypt text | |
text = text.to_s unless text.is_a? String | |
len = ActiveSupport::MessageEncryptor.key_len | |
salt = SecureRandom.hex len | |
key = ActiveSupport::KeyGenerator.new(Rails.application.secrets.secret_key_base).generate_key salt, len | |
crypt = ActiveSupport::MessageEncryptor.new key | |
encrypted_data = crypt.encrypt_and_sign text |
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
require 'muse' | |
include Muse | |
def intro(num) | |
bar(num + 1, b:0.25).notes { e5; dis5; } | |
bar(num + 2, b:0.25).notes { e5; dis5; e5; b4; d5; c5; } | |
bar(num + 3, b:0.25).notes { a4 b:0.5; _; c4; e4; a4; } | |
bar(num + 3, b:0.25).notes { a2; e3; a3; _ b:0.75 } |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Wallet Connect</title> | |
<script src="https://cdn.jsdelivr.net/npm/@walletconnect/[email protected]/dist/umd/index.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script> | |
</head> | |
<body> |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.2; | |
import "@openzeppelin/[email protected]/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/[email protected]/token/ERC721/extensions/ERC721Enumerable.sol"; | |
import "@openzeppelin/[email protected]/access/Ownable.sol"; | |
contract MyToken is ERC721, ERC721Enumerable, Ownable { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Deploy Smart Contract</title> | |
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script> | |
<script src="https://cdn.ethers.io/lib/ethers-5.2.umd.min.js" type="application/javascript"></script> | |
</head> | |
<body> | |
<div> |
OlderNewer