Skip to content

Instantly share code, notes, and snippets.

View AntiMoron's full-sized avatar
😈
Some kill some steal some breaks your heart.

AntiMoron AntiMoron

😈
Some kill some steal some breaks your heart.
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Glowing Text Effect in CSS</title>
<style>
@keyframes glowingText {
0% {
text-shadow: 0 0 0.02em hsl(50 100% 50% / 1), 0 0 0.1em hsl(40 100% 63% / 1),
0 0 0.2em hsl(37 100% 62% / 1), 0 0 0.6em hsl(33 100% 58% / 1),
@AntiMoron
AntiMoron / RPLiveRtmpView.h
Created December 11, 2017 16:20
TXLVB播放rtmp推流
#import <UIKit/UIKit.h>
@interface RPLiveRtmpView : UIView
// 播放视频地址
@property(nonatomic, strong) NSString* movieSource;
// 被添加的viewController
@property(nonatomic, weak) UIViewController* viewController;
// 播放url
-(BOOL)startRtmp;
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
fileprivate func _setDictionary( dict:inout [String: Any], value: Any, forKeys: ArraySlice<String>) {
guard forKeys.count > 1 else {
print(forKeys)
@AntiMoron
AntiMoron / optimize
Created February 27, 2017 03:17
swift3 set value for keypath
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
fileprivate func _setDictionary( dict:inout [String: Any], value: Any, forKeys: ArraySlice<String>) {
guard forKeys.count > 1 else {
dict[forKeys.first!] = value
@AntiMoron
AntiMoron / test.swift
Created February 27, 2017 02:58
Dictionary set value for keypath
//: Playground - noun: a place where people can play
import UIKit
var str = "Hello, playground"
func setDictionary( dict:inout [String: Any], value: Any, forKey: String) {
let keypaths = forKey.components(separatedBy: ".")
guard keypaths.count > 1 else {
@AntiMoron
AntiMoron / Test.cpp
Last active December 8, 2016 03:27
腾讯LVB流推送SDK 测试样例
#include<iostream>
#include<string>
#include<exception>
#include<windows.h>
#include<avsdk/av_sdk.h>
using namespace tencent::av;
using namespace std;
#define ENABLE_CONSOLE
@AntiMoron
AntiMoron / Test.cpp
Created December 7, 2016 13:48
腾讯LVB流推送SDK 测试样例
#include<iostream>
#include<string>
#include<exception>
#include<windows.h>
#include<avsdk/av_sdk.h>
using namespace tencent::av;
using namespace std;
#define ENABLE_CONSOLE
@AntiMoron
AntiMoron / Test.cpp
Created December 7, 2016 13:48
腾讯LVB流推送SDK 测试样例
#include<iostream>
#include<string>
#include<exception>
#include<windows.h>
#include<avsdk/av_sdk.h>
using namespace tencent::av;
using namespace std;
#define ENABLE_CONSOLE