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
| ErrorDocument 401 "Unauthorized Access" | |
| RewriteEngine off | |
| SSLRequireSSL | |
| AuthUserFile "_________.htpasswd" | |
| AuthName "Authorization Required" | |
| AuthType BASIC | |
| require valid-user | |
| order deny,allow |
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
| RewriteEngine on | |
| RewriteCond %{SERVER_PORT} !^443$ | |
| RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
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
| (defun fizzbuzz (n) | |
| (loop for i from 1 to n | |
| do (cond ((equal (mod i 15) 0) (format t "~%fizzbuzz")) | |
| ((equal (mod i 5) 0) (format t "~%buzz")) | |
| ((equal (mod i 3) 0) (format t "~%fizz")) | |
| (t (print i))))) | |
| (defun fizzbuzz-main () | |
| (fizzbuzz 100)) |
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
| RewriteEngine on | |
| RewriteCond %{HTTP_HOST} ^www\.example\.jp$ | |
| RewriteRule ^(.*)$ https://example.jp%{REQUEST_URI} [R=301,L] |
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
| import sys | |
| from os import makedirs | |
| from itertools import count | |
| from os.path import basename | |
| from xml.etree import ElementTree | |
| from urllib.parse import urlencode | |
| from urllib.request import urlopen, urlretrieve | |
| for tag in sys.argv[1:]: | |
| dir = basename(tag) |
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
| public override void OnInspectorGUI() | |
| { | |
| Target.testFloat = EditorGUILayout.FloatField(new GUIContent("Test Float", "Here is a tooltip"), Target.testFloat); | |
| } |
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
| using System; | |
| public static class MyIntegerExtensions | |
| { | |
| public static int TruncatedMod(this int dividend, int divisor) | |
| { | |
| return dividend % divisor; | |
| } | |
| public static int FlooredMod(this int dividend, int divisor) |
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 mid(a, b, c): | |
| return min(min(max(a, b), max(b, c)), max(c, a)) |
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
| import datetime | |
| def daterange(start, stop, step=1): | |
| delta = datetime.timedelta(days=step) | |
| while start < stop: | |
| yield start | |
| start += delta |
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> | |
| <title>Two Column Layout Example with an image on the Top of Right Column</title> | |
| <style> | |
| main { | |
| width: 1200px; | |
| } | |
| article { | |
| position: relative; |
OlderNewer