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
| LDI 1 | |
| STA 15 | |
| LDI 0 | |
| OUT | |
| ADD 15 | |
| JC 7 | |
| JMP 3 | |
| SUB 15 | |
| OUT | |
| JZ 3 |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Alpha Component</key> | |
| <real>1</real> | |
| <key>Blue Component</key> | |
| <real>0.0</real> |
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
| package main | |
| import "fmt" | |
| func main() { | |
| initLen, insertions := 64, 1024*10 | |
| s := make([]int, 0, initLen) | |
| currCap := cap(s) |
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
| package main | |
| import ( | |
| "fmt" | |
| "reflect" | |
| "unsafe" | |
| "golang.org/x/sys/unix" | |
| ) |
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
| #!/sbin/ip6tables-restore | |
| *filter | |
| :INPUT ACCEPT [0:0] | |
| :FORWARD ACCEPT [0:0] | |
| :OUTPUT ACCEPT [0:0] | |
| # Разрешаем связанные и установленые соединения | |
| -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT | |
| # Разрешаем служебный icmp-трафик |
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
| #!/sbin/iptables-restore | |
| *filter | |
| :INPUT ACCEPT [0:0] | |
| :FORWARD ACCEPT [0:0] | |
| :OUTPUT ACCEPT [0:0] | |
| # Разрешаем связанные и установленые соединения | |
| -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT | |
| # Разрешаем служебный icmp-трафик |
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
| <!-- This demo on jsfiddle http://jsfiddle.net/Yarysh/zguCJ/2/ --> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <style> | |
| body{ | |
| font-size:12px; | |
| color:#000000; | |
| background-color:#ffffff; |
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
| angular.module('myApp').run(['$http', '$cookies', function ($http, $cookies) { | |
| $http.defaults.headers.post['X-CSRFToken'] = $cookies.csrftoken; | |
| }]); |
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
| #Usage: TEMPLATES_DIR = root('templates') | |
| from os.path import join, abspath, dirname | |
| here = lambda *x: join(abspath(dirname(__file__)), *x) | |
| PROJECT_ROOT = here("..") | |
| root = lambda *x: join(abspath(PROJECT_ROOT), *x) |
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
| function addClass(o, c){ | |
| var re = new RegExp("(^|\\s)" + c + "(\\s|$)", "g"); | |
| if (re.test(o.className)) return; | |
| o.className = (o.className + " " + c).replace(/\s+/g, " ").replace(/(^ | $)/g, ""); | |
| } |
NewerOlder