Instantly share code, notes, and snippets.

View NativeKeyboardHeight_vs_RxKeboard.swift
// native imperative way
override func viewDidLoad
NotificationCenter.default.addObserver(
self,
selector: #selector(keyboardWillShow),
name: UIResponder.keyboardWillShowNotification,
object: nil
)
@objc private func keyboardWillShow(_ notification: Notification) {
View 3.2_notebook_quizz__Loops.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View FilesSnapshot.xml
<?xml version="1.0" encoding="utf-8"?>
<fileSnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<files>
<file path="C:\ProgramData\chocolatey\lib\winlister\winlister-x64.zip.txt" checksum="7768F87746DFD546A2CAB9EE1F6E5F13" />
<file path="C:\ProgramData\chocolatey\lib\winlister\winlister.nupkg" checksum="A6161908AC8B499FA3A1FE59477CD6E0" />
<file path="C:\ProgramData\chocolatey\lib\winlister\winlister.nuspec" checksum="83AC46B6FB149BF88B50E6E6ACE09520" />
<file path="C:\ProgramData\chocolatey\lib\winlister\tools\chocolateyInstall.ps1" checksum="D48E266DFA75B0BD719EAEE2279E80B0" />
<file path="C:\ProgramData\chocolatey\lib\winlister\tools\readme.txt" checksum="C1E7F88D4A372F02F19F0B7AB0D354D0" />
<file path="C:\ProgramData\chocolatey\lib\winlister\tools\winlister.chm" checksum="011A58AB334F1A8422ADCC9A160C41AE" />
<file path="C:\ProgramData\chocolatey\lib\winlister\tools\winlister.exe" checksum="A57B0D81081EE158D02A1B3AD4D20B
View twitter-api.php
<?php
$option = getopt('k:c');
$keyword = $option['k'];
$count = $option['c'];
if(!$keyword) {
echo '[TwitterAPI Error]search keyword is required.';
die();
}
if(!$count) {
echo '[TwitterAPI Error]count is required.';
View untrusted-lvl5-solution.js
/******************
* minesweeper.js *
******************
*
* So much for Asimov's Laws. They're actually trying to kill
* you now. Not to be alarmist, but the floor is littered
* with mines. Rushing for the exit blindly may be unwise.
* I need you alive, after all.
*
* If only there was some way you could track the positions
View output_log.txt
Log uploaded on Sunday, January 20, 2019, 10:21:57 AM
Loaded mods:
Core: (no assemblies)
Dubs Bad Hygiene: 0Harmony(1.2.0.1), BadHygiene(2.4.6953.34813)
[KV] RimFridge - 1.0: 0Harmony(1.2.0.1), RimFridge(1.0.0.0)
Pick Up And Haul: 0Harmony(1.2.0.1), PickUpAndHaul(av:0.1.0.5,fv:0.1.0.726)
Numbers: 0Harmony(1.2.0.1), Numbers(av:1.0.0.0,fv:1.0.0.2)
Dubs Mint Menus: 0Harmony(1.2.0.1), DubsMintMenus(1.0.6918.10007)
Quarry 1.0: Quarry(0.19.0.0)
Various Space Ship Chunk: 0Harmony(1.2.0.1), ShipChunkTranspiler(0.1.1.0)
View last.rb
@rules = [
{"<TYPE>": "TYPE"},
{"<NUMBER>": "FATURO_NO"},
{"<DATE>": "FATURA_TARIHI"},
{"<ARP_CODE>": "MUSTERI_KODU"},
{"<DATE_CREATED>": "SIPARIS_TARIHI"},
{"<SALESMAN_CODE>": "NOTLAR"},
{"<DATE>": "SEVK_TARIHI"},
{"<TYPE>": "TYPE"},
{"<MASTER_CODE>": "VARYANT_STOK_KODU"},
View untrusted-lvl17-solution.js
/***************
* pointers.js *
***************
*
* You! How are you still alive?
*
* Well, no matter. Good luck getting through this
* maze of rooms - you'll never see me or the Algorithm again!
*/
View General.xaml
<telerik:RadGridView ShowGroupPanel="False" GridLinesVisibility="Vertical"
ShowColumnHeaders="False" ColumnBackground="Bisque"
RowIndicatorVisibility="Collapsed"/>
View gist:972171bdb3629783e42ea001e26cbcb4
// main.cpp
// Final_Nanxing_Task3
//
// Created by Nanxing LAI on 2019/1/20.
// Copyright © 2019 Mac. All rights reserved.
//
#include<iostream>
#include<cmath>
#include<string>