Skip to content

Instantly share code, notes, and snippets.

@navin7527
navin7527 / PY0101EN-3-3-Functions.ipynb
Created Dec 12, 2019
Created on Cognitive Class Labs
View PY0101EN-3-3-Functions.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flappyBug
flappyBug / filename.zsh
Created Dec 12, 2019 — forked from uschek/filename.zsh
Zsh: file base name and extension
View filename.zsh
#!/usr/bin/env zsh
f='example.txt'
echo ${f:r}
#=> example
echo ${f:e}
#=> txt
@lzybkr
lzybkr / ProxyStaticMembers.ps1
Created Dec 12, 2019
Create a proxy object for static members of a .Net type
View ProxyStaticMembers.ps1
param([type]$Type)
$result = [pscustomobject]@{}
foreach ($property in $type.GetProperties([System.Reflection.BindingFlags]::Public -bor [System.Reflection.BindingFlags]::Static)) {
$name = $property.Name
$params = @{
InputObject = $result
MemberType = 'ScriptProperty'
Name = $property.Name
}
@ouyangfengfeng
ouyangfengfeng / unflower_cms.py
Created Dec 12, 2019 — forked from LeadroyaL/unflower_cms.py
Unicorn实战(一):去掉libcms.so的花指令
View unflower_cms.py
from elftools.elf.constants import P_FLAGS
from elftools.elf.elffile import ELFFile
from unicorn import Uc, UC_ARCH_ARM, UC_MODE_LITTLE_ENDIAN, UC_HOOK_CODE, UC_PROT_READ, UC_PROT_WRITE, UC_PROT_EXEC
from unicorn.arm_const import *
from capstone import Cs, CS_ARCH_ARM, CS_MODE_THUMB, CsInsn
from keystone import Ks, KS_MODE_THUMB, KS_ARCH_ARM
# 找到.text节
filename = "./libcms.so"
@alyrlee
alyrlee / gist:6cea2bccf45b6bb71b63029298431456
Created Dec 12, 2019
interactive-web-apps-v1/checkpoint/3
View gist:6cea2bccf45b6bb71b63029298431456
https://repl.it/@AshleyLee/return-of-fizz-buzz
https://repl.it/@AshleyLee/Cat-carousel-jQuery
https://repl.it/@AshleyLee/shopping-list
@KHANRHEE
KHANRHEE / PY0101EN-2-2-Lists.ipynb
Created Dec 12, 2019
Created on Cognitive Class Labs
View PY0101EN-2-2-Lists.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Ngmrl
Ngmrl / BeenzCoin.sol
Created Dec 12, 2019
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.24+commit.e67f0147.js&optimize=false&gist=
View BeenzCoin.sol
/*
Implements EIP20 token standard: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20.md
.*/
pragma solidity ^0.4.24;
import "./EIP20Interface.sol";
View la double j - wrong images.js
{
"_id" : "5c658cb992bd66000c109aa0",
"partnerId" : "la-doublej",
"brandId" : "la-doublej",
"tags" : [
"clothing",
"dresses",
"summer",
"maxi"
],
@frei-x
frei-x / cloudSettings
Created Dec 12, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-12-12T01:59:29.705Z","extensionVersion":"v3.4.3"}
View PY0101EN-3.3_notebook_quizz_functions.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.