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
/* Responsive Circle */ | |
.circle-text { | |
width:50%; | |
margin-left:auto; | |
margin-right:auto; | |
} | |
.circle-text:after { | |
content: ""; | |
display: block; | |
width: 100%; |
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
/* Triangle */ | |
.triangle { position: relative; } | |
.triangle::before { | |
border-top: 0; | |
border-right: 175px solid transparent; | |
border-bottom: 175px solid transparent; | |
border-left: 175px solid #af2715; | |
position: absolute; | |
content: ""; | |
z-index:3; |
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
jQuery(document).ready(function() { | |
// Hide the field initially | |
jQuery(".field_2").hide(); // <div class="field_2"> | |
// Show the text field only when the third option is chosen - this doesn't | |
jQuery('#field_1').change(function() { // <select id="field_1"> | |
if (jQuery("#field_1").val() == "Nope") { // <option value="Nope"> | |
jQuery(".field_2").show(); | |
} else { | |
jQuery(".field_2").hide(); | |
} |
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
$group_ids = groups_get_user_groups( bp_loggedin_user_id() ); | |
var_dump( $group_ids["groups"] ); | |
foreach( $group_ids["groups"] as $id ) { | |
$group = groups_get_group( array( 'group_id' => $id ) ); | |
echo '<pre>'; | |
var_dump( $group ); | |
echo '</pre>'; | |
} | |
// Print group name | |
$group_name = $group->name; |
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
# Add file extension | |
import os | |
import glob | |
os.chdir("C:/Users/myFolder") | |
aList = [] | |
for file in glob.glob("*"): | |
print(file) | |
# Add extension if does not exist | |
if '.' not in file: |
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
d = vars(opts) | |
- for k, v in d.items(): | |
+ for k, v in list(d.items()): | |
# delete None or False value | |
if v is None or v is False: | |
del d[k] |
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
{ | |
"export_version": "0.054", | |
"framed_nodes": {}, | |
"groups": {}, | |
"nodes": { | |
"Axis Input": { | |
"bl_idname": "svAxisInputNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, |
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 bpy | |
scene = bpy.context.scene | |
for ob in scene.objects: | |
if ob.type == 'MESH': | |
scene.objects.active = ob | |
bpy.ops.object.mode_set(mode='EDIT', toggle=False) | |
# Run an edit-mode operator on every object in the scene [1] | |
# [1]: http://blender.stackexchange.com/a/2639/8112 |
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
{ | |
"export_version": "0.054", | |
"framed_nodes": {}, | |
"groups": {}, | |
"nodes": { | |
"Integer": { | |
"bl_idname": "IntegerNode", | |
"color": [ | |
0.6079999804496765, | |
0.6079999804496765, |
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
ul.tags { | |
display: inline; | |
margin: 0; | |
padding: 0; | |
} | |
ul.tags li { | |
display: inline; | |
list-style: none; | |
margin: 0; | |
padding: 0; |
OlderNewer