This file contains 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
java.lang.reflect.InvocationTargetException | |
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | |
at java.lang.reflect.Method.invoke(Unknown Source) | |
at openperipheral.adapter.MethodDeclaration$CallWrap.call(MethodDeclaration.java:290) | |
at openperipheral.adapter.MethodDeclaration$CallWrap.call(MethodDeclaration.java:226) | |
at openperipheral.adapter.peripheral.ExecutionStrategy$OnTick$1.run(ExecutionStrategy.java:75) | |
at openperipheral.TickHandler.tickEnd(TickHandler.java:52) | |
at cpw.mods.fml.common.SingleIntervalHandler.tickEnd(SingleIntervalHandler.java:34) | |
at cpw.mods.fml.common.FMLCommonHandler.tickEnd(FMLCommonHandler.java:141) |
This file contains 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
for dest, key1, key2 in ((output_array1,'foo','bar'), (output_array2,'baz','qux')): | |
tmp = calculate(key1) | |
ret = getattr(tmp, key2) | |
dest.append(ret) |
This file contains 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
for dest, key1, key2 in ((output_array1,'foo','bar'), (output_array2,'baz','qux')): | |
tmp = calculate(key1) | |
ret = getattr(tmp, key2) | |
dest.append(ret) |
This file contains 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
1 1 1 0 copy_size=2 shr=4 and=000FFF add=0241 nextbyte=ebx-2 ebx+=2 | |
bits: | |
001 002 004 008 010 020 040 080 100 200 400 800 | |
1 2 4 8 16 32 64 128 256 512 1024 2048 | |
----------------------------------------------------------- | |
0 ? ? ? ? ? ? ? ? ? ? ? COPY nexttest=02 | |
1 0 ? ? ? ? ? ? ? ? ? ? shr=2 add=001 and=001 COPY nexttest=08 | |
1 1 0 ? ? ? ? ? ? ? ? ? shr=3 add=003 and=003 COPY nexttest=20 | |
1 1 1 0 ? ? ? ? ? ? ? ? shr=4 add=007 and=007 COPY nexttest=80 | |
1 1 1 1 0 ? ? ? ? ? ? ? shr=5 add=00F and=00F nextbyte=ebx-3 nexttest=02 |
This file contains 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
Private Sub Command1_Click() | |
Dim TextureBPP As Long | |
Dim i&, mydib1&, mydib2& | |
If List1.ListCount > 0 Then | |
For i& = 0 To List1.ListCount - 1 | |
mydib1 = 0: mydib2 = 0 | |
This file contains 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
$ powershell -inputformat none -Command "[System.Runtime.InterOpServices.Marshal]::SizeOf([System.IntPtr])" | |
4 | |
$ /cygdrive/c/Windows/system32/WindowsPowerShell/v1.0/powershell.exe -inputformat none -Command "[System.Runtime.InterOpServices.Marshal]::SizeOf([System.IntPtr])" | |
4 | |
$ cmd.exe /c %SystemRoot%/sysnative/WindowsPowerShell/v1.0/powershell.exe -inputformat none -Command "[System.Runtime.InterOpServices.Marshal]::SizeOf([System.IntPtr])" | |
8 | |
This file contains 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 urllib2,sys,time | |
n=int(sys.argv[1]) | |
connections=[urllib2.urlopen(sys.argv[2]) for _ in range(n)] | |
b=0 | |
while True: | |
for c in connections: | |
c.read(1) | |
b+=1 | |
print 'Bytes read:',b |
This file contains 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/python | |
# -*- coding: iso-8859-1 -*- | |
import sys | |
if not len(sys.argv)==3: | |
print 'Usage: decompress.py <filein> <fileout>' | |
sys.exit() | |
def getbyte(file): | |
char=file.read(1) | |
if char=='': |
This file contains 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
.-. | |
(((O) | |
)^( | |
/(o)\ | |
/ / \ \ | |
/ / \ \ | |
/ / \ \ | |
.----------\.-.---------. | |
|o[::::::::((O)):::::::]| | |
/'-----------`-'\--------' |
This file contains 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
<h1>Civil Liberties</h1><blockquote> | |
Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety. | |
</blockquote><p> | |
<cite>—Benjamin Franklin (1775)</cite></p><h3>Central Ideas</h3><ol class="ol1"> | |
<li>Civil liberties protect individuals from abuses of power by the government.</li> | |
<li>The Bill of Rights defines the core of civil liberties protections, and Supreme Court interpretations define the limits of these protections.</li> | |
<li>Civil liberties protections have sometimes been extended to apply to state governments as well.</li> | |
<li>The interpretation of individual liberties has changed over time.</li></ol><h3>With Liberty and Justice for All?</h3><p> | |
The United States has a perpetual lease on a piece of territory in Cuba called Guantanamo Bay. The government has maintained a naval base at this site since 1898. In 2002, the administration of President George W. Bush began using it as a detainment facility for suspected terrorists captured in the |
OlderNewer