Skip to content

Instantly share code, notes, and snippets.

// document.addEventListener('DOMContentLoaded', function() {
// console.log("sending request ")
// $.ajax({
// type: 'GET',
// crossDomain: true,
// url: 'https://nb2ikd1ft4.execute-api.us-east-1.amazonaws.com/production',
// success: function(data){
// console.log(data)
// },
// error: function(err){
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# (c) 2020 Humu
# MIT License
from typing import Any
import github
AUTOMERGE_LABEL_NAME = 'automerge'
.box {
border: 4px solid #8FB3E7;
padding: 20px;
color: white;
display: flex;
justify-content: center;
flex-direction: column;
text-align: center;
width: 1200px;
height: 630px;
@aadeshere1
aadeshere1 / findMatchingSimulator.js
Created July 18, 2019 07:10
Fix for: Could not find iPhone X simulator
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
'use strict';
#!/usr/bin/env ruby
require 'date'
require 'time'
require 'google/apis/calendar_v3'
require 'googleauth'
require 'ap'
class Reminder
attr_reader :date, :time, :message
def initialize(date, time, message)
arr =[
{
'merchant_id' => '3000',
'service_id' => '1234',
'dtls' => [
{
'dtl1' => [
{
'dtl_rowno' => '1',
'dtl_item_id' => '345',
void main() {
var deck = new Deck();
print(deck);
deck.removeCard('Diamonds', 'Ace');
print(deck);
}
class Card {
String rank;
String suit;
@aadeshere1
aadeshere1 / AD to BS in ruby
Last active August 7, 2018 12:11
Converts AD to BS in batch using hamropatro.com date converter API endpoint.
# HamroPatro might change it's api endopint
require 'rest-client'
require 'loofah'
require 'loofah/helpers'
eng_date = File.readlines('nepdate.txt')
mahina = {"बैशाख" => 1, "जेठ" => 2, "आषाढ" => 3, "श्रावण" => 4,"भाद्र" => 5, "आश्विन" => 6, "कार्तिक" => 7, "मंसिर" => 8, "पौष" => 9, "माघ" => 10, "फाल्गुण" => 11, "चैत्र" => 12}
mahinaharu = Regexp.new(mahina.keys.map {|x| Regexp.escape(x) }.join('|'))
@aadeshere1
aadeshere1 / remount.sh
Created November 25, 2017 09:11 — forked from ertseyhan/remount.sh
Temporarily increase size of tmp folder on Arch linux
#!/bin/bash
sudo mount -o remount,size=10G,noatime /tmp
echo "Done. Please use 'df -h' to make sure folder size is increased."