Skip to content

Instantly share code, notes, and snippets.

View citmusa's full-sized avatar

Citlalli Murillo citmusa

View GitHub Profile
@citmusa
citmusa / graphene.py
Created January 28, 2022 18:24 — forked from mixxorz/graphene.py
Get requested fields from ResolveInfo. Graphene python.
"""
MIT License
Copyright (c) 2018 Mitchel Cabuloy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@citmusa
citmusa / 0_reuse_code.js
Created November 3, 2015 16:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
$("#selectBox").append('<option value="option6">option6</option>');

###ANGULAR.JS

<html ng-app>

###Data Binding

<input type="text" ng-model="yourModel">
from ftplib import FTP
import sys, os
# Connect
ftp = FTP('serverName')
ftp.login('user', 'password')
# Directory of the local files
root = "path/to/root/directory/"